Thursday, June 25, 2009

SharePoint Designer 2007 videos

Below are some of the useful links for those who new to Sharepoint Designer 2007. It give undestanding about the sharepoint designer and how to get started with Sharepoint Designer.

Powerful user interface and design tools (Introduction)
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=1&CTT=11&Origin=HA102199841033

Customize SharePoint sites
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=1&CTT=11&Origin=HA102199841033

Create and modify layout pages
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=2&CTT=11&Origin=HA102199841033

Create and modify rules-based workflow applications
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=3&CTT=11&Origin=HA102199841033

Build composite no-code SharePoint applications
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=4&CTT=11&Origin=HA102199841033

Visual Studio integration
http://office.microsoft.com/home/video.aspx?assetid=HX102200491033&width=0&height=0&startindex=5&CTT=11&Origin=HA102199841033

Friday, June 12, 2009

Some Important links

1 JavaScript
1.1 How to get client date and time
1.2 How to access a control by using JavaScript
1.3 How to invoke a server-side function with JavaScript
1.4 How to retrieve server side variables using JavaScript code
1.5 How to assign a value to a hidden field using JavaScript in ASP.NET
1.6 How to register the JavaScript function at Code-Behind
1.7 How to display images with a delay of five seconds
1.8 How to get browser screen settings and apply it to page controls
1.9 How to clear the session when the user closes a window
2 Ways to pass data between pages
2.1 How to use cookies
2.2 How to use QueryString
2.3 How to use Session
2.4 How to use Context
2.5 How to use PreviousPage
2.6 How to use Submit Form
2.7 How to use Server.Transfer
3 File Upload
3.1 How to upload a file
3.2 How to upload multiple files at once
3.3 Why upload fails when using an ASP.NET FileUpload control to upload large files
3.4 How to upload an image files only
3.5 How to get a File Upload control work with an UpdatePanel
4 Calendar
4.1 How to change the culture settings for a Calendar
4.2 How to select multiple non-sequential dates at Code-Behind
4.3 How to disable some dates in Calendar control
4.4 How to extend Calendar control for Server-Side validation
4.5 How to set ToolTips and links in Calendar control’s DayRender event
4.6 How to give some dates different appearances
5 List controls
5.1 How to enable ASP.NET DropDownList with OptionGroup support
5.2 How to disable an item in DropDownList
5.3 How to hold the selected value for a DropDownList
6 User control
6.1 How to add a new property to UserControl
6.2 How to access a dynamically created UserControl
6.3 How to access a control inside a UserControl
7 Dynamic controls
7.1 How to create a dynamic control
7.2 How to access a user entered value in a dynamic created TextBox control
7.3 Dynamic controls accessed by JavaScript
7.4 How to retain all added server controls dynamically after post back
7.5 Why dynamically created controls disappear after a post back
8 Style
8.1 How to use with Code-Behind
8.2 How to use with JavaScript
8.3 How to remove a space
8.4 How to use with html
8.5 How to set an image as Button’s background
8.6 How to color items in ListBox
9 Print
9.1 How to print a part of a web page with CSS
9.2 How to print a part of a web page with JavaScript (1)
9.3 How to print a part of a web page with JavaScript (2)
10 Mail
10.1 What classes are needed to send e-mails in ASP.NET
10.2 How to send emails by using System.Net.Mail
10.3 How to configure a SMTP Server
10.4 How to send an email with Gmail server

PC maintenance

When people notice their computer's performance slowing, the most common reason is the hard disk. Your computer's hard disk is a non-removable area that holds all the information available from your computer. Over time, hard disks begin to lose their ability to store data efficiently.

Here is the link how to maintain your Computer See the link below
http://www.microsoft.com/athome/setup/maintenance.aspx

Save time with quick computer shortcuts

If you're looking to work more efficiently in Microsoft Word, Excel, or Internet Explorer, the key is using programmed shortcuts. Check out the below link

http://www.microsoft.com/athome/organization/compshortcuts.aspx

Organize your e-mail

When i started learning the Sharepoint i came to know how to manage the email. I want to share it with you. Use the below link to read about how to organize your email.

7 ways to organize your e-mail
http://www.microsoft.com/atwork/productivity/emailtools.aspx

4 ways to take control of your e-mail Inbox
http://www.microsoft.com/atwork/productivity/email.aspx

I think it will usefull to you

Code for shut down the Computer

private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("Shutdown", "-s");
}

-s = shutdown
-r = restart
-t = timed shutdown
-f = hung/busy application instantly without prompting you to end the application manually

And here comes the most awaited thing...
Remote shutdown, All you have do is append this argument along with the previously mentioned arguments (i.e., -s or -r, -f, -t ). You can either specify the computer name or IP address of the target machine that you wish to shutdown/restart.

Ajax Tutorial - Part II

Getting the Answer With Autocomplete





Getting instant login feedback





Ajax Tutorial - Part I

Introuction



And also watch this tutorial in you tube
http://www.youtube.com/watch?v=7i-3uPzc8ZQ


System Requirements




Simple ajax example using GET



Simple ajax example using POST



Getting to know Ajax




Modifying Web Pages on the Fly



Searching in Real Time with Live Searches




Source from You Tube

Create an Ajax Chat Client

Create an Ajax Chat Client

Getting to grips in AJAX

Here are some of usefull videos for Ajax

Getting to grips with: AJAX - Existing Web Site




Getting to grips with: AJAX - Web Services

A Good Ajax Web Site

Error handling in an AJAX

Error handling in an AJAX world can often be tricky -- especially when AJAX call-backs are taking place and a mixture of client and server code is running within an application. In its most recent release, the control that comes with ASP.NET AJAX now has much more robust error handling and reporting features for you to use. Specifically:
1) You can now handle the "OnAsyncPostBackError" event on the control to catch and/or modify an error message that occurs during the processing of an AJAX postback callback on the server.
2) You can now set the "AllowCustomErrors" property on the control to enable the standard ASP.NET custom error support to be enabled to redirect a user automatically to an error page when an error occurs (even if it is happening during an AJAX postback).
3) You can now optionally handle client-side JavaScript events on the page to intercept any error message sent back from the server, and perform custom client-side actions as a result (for example: to output the error message to a nicely formatted section instead of performing a pop-up message).

Google Checkout

Google Checkout is an online payment processing service provided by Google aimed at simplifying the process of paying for online purchases. Users store their credit or debit card and shipping information in their Google Account, so that they can purchase at participating stores at the click of a button. Google Checkout also offers fraud protection, as well a unified page for tracking purchases and their status.

Below link have Google Checkout API Documentation

http://code.google.com/apis/checkout/

Here is the sample Google Checkout Custom Control link

http://www.c-sharpcorner.com/UploadFile/jlf0002/googlecheckoutcustomcontrol08072006134735PM/googlecheckoutcustomcontrol.aspx

Wednesday, June 3, 2009

EventViewer using C# Code

This code display the last error, warning and Information that register in the Event log of the local system.

Include the namespace
using System.Diagnostics;

Copy the below code into main method of the console program and while running program you have to enter the numerical value from 1 to 3. Base on the selection the last registered value is display from the EventLog Entry

you can check it under the control panel ==> Administrative Tools ==> EventViewer


String myEventType = null;
// Associate the instance of 'EventLog' with local System Log.
EventLog myEventLog = new EventLog("Application", ".");
Console.WriteLine("1:Error");
Console.WriteLine("2:Information");
Console.WriteLine("3:Warning");
Console.WriteLine("Select the Event Type");
int myOption = Convert.ToInt32(Console.ReadLine());
switch (myOption)
{
case 1: myEventType = "Error";
break;
case 2: myEventType = "Information";
break;
case 3: myEventType = "Warning";
break;
default: break;
}
EventLogEntryCollection myLogEntryCollection = myEventLog.Entries;
int myCount = myLogEntryCollection.Count;
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
for (int i = myCount - 1; i > 0; i--)
{
EventLogEntry myLogEntry = myLogEntryCollection[i];
// Select the entry having desired EventType.
if (myLogEntry.EntryType.ToString().Equals(myEventType))
{
// Display Source of the event.
Console.WriteLine(myLogEntry.Source
+ " was the source of last event of type "
+ myLogEntry.EntryType);
Console.ReadLine();
return;
}
}


Enjoy :)

Code for getting local Local Machine name and Ip address

The follow ing code to display the current machine name and the ip address of the current machine

This is the console program, copy the below code and put inside your main method and include the following namespace.

using System.Net;


string strHostName="";
strHostName = Dns.GetHostName();
Console.WriteLine("Local Machine's Host Name: " + strHostName);
Console.ReadLine();
IPHostEntry ientry = Dns.GetHostByName(strHostName);
IPAddress[] addr = ientry.AddressList;
for (int i = 0; i < addr.Length; i++)
{
Console.WriteLine("IP Address {0}: {1} ", i, addr[i].ToString());
}
Console.ReadLine();


Enjoy !!!

Basic Concept of OOPS and .NET

The below links will refresh the basic concept in programming language

1) This is a set of lessons suited for beginning to intermediate programmers or anyone who would like to gain familiarity with the C# programming language. These lessons will help you get a quick head-start with C# programming.

http://www.csharp-station.com/Tutorial.aspx

2) Object-Oriented Programming Concepts and .NET
http://www.c-sharpcorner.com/UploadFile/ecabral/OOPSandDotNET106252005024236AM/OOPSandDotNET1.aspx

http://www.c-sharpcorner.com/UploadFile/eecabral/OOPSand.NET211102005075520AM/OOPSand.NET2.aspx

3) C# Coding Standards and Best Programming Practices
http://www.dotnetspider.com/tutorials/CodingStandards.doc

Enjoy