Friday, January 6, 2012

ASP.NET Keyboard Shortcut

Mostly used shortcut key in ASP.NET 2.0 for saving your timeCtrl+M+L to toggle all (collapse and explore) code block. Ctrl+M+O to collapse region block Ctrl+M+P to expand code block CTRL+M+M to collapse the region your cursor is at whether its a method, namespace or whatever for collapsing code blocks, regions and methods. CTRL+K+D to Format the current document in Visual Studio CTRL+K+\ to Delete white spaces CTRL+K+C to Comment code CTRL+K+U to Uncomment code CTRL+R+W to Display white spaces CTRL+Shift+U to Uppercase selected code CTRL+U to Lowercase selected co...

Thursday, January 5, 2012

Reverse string Program in c#

1st Method public string Reverse(string str) { int len = str.Length; char[] arr = new char[len]; for (int i = 0; i < len; i++) { arr[i] = str[len - 1 - i]; } return new string(arr); } 2nd Method public string Reverse(string s) { char[] arr = s.ToCharArray(); Array.Reverse(arr); return new string(arr);...

CSS3 Video Tutorail

http://www.fundoovideo.com/collection/css3-video-tutorials ...

Palindrome Program in C#

How to Write a Palindrome Programme using C# ? using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string str=string .Empty ; Console.WriteLine("Enter a String"); string s = Console.ReadLine(); int i = s.Length; //we can get the Length of string by using Length Property for (int j=i -1; j >= 0; j--) { str = str + s[j ]; } if (str == s) { Console.WriteLine(s + " is palindrome"); } else { Console.WriteLine(s + " is not a palindeome"); } Console.WriteLine(str); Console.Read();  } } } OutPut: Enter a String MadaM Madam is palindrome ...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo