Friday, July 10, 2009

Check Your Website Search Ranking

InstantRankmeter is an online service that gives you a complete statistical overview on how your website is performing within the Google, Bing and Yahoo! search engines
.




ASP.NET Page Life Cycle Overview

Page Life-cycle Stages

Page Request
Start
Page Initialization
Load
Validation
Postback Event Handling
Rendering
Unload

Life-cycle Events

PreInit
Init
InitComplete
PreLoad
Load
ControlEvent
LoadComplete
PreRender
SaveStateComplete
Render
Unload




Thursday, July 9, 2009

What is the difference between Convert.ToInt32 and Int32.Parse

if(STRING != null)
{
    Convert.ToInt32(string) AND Int32.Parse(string) Yield Identical Results;
}
else
{
     Int32.Parse(null) throws an ArgumentNullException;
     Convert.ToInt32(null) returns a zero;
}




How To Do Case Insensitive String Comparison

        if (System.String.Compare("xploredotnet", "XPlorEdotnet", true) == 0)
        {
            Response.Write("Equal");
        }
        else
        {
            Response.Write("!Equal");
        }




Wednesday, July 8, 2009

Whats The Difference Between string and stringbuilder

String

Strings are immutable and they are actually returning a modified copy of the string.

StringBuilder

Strings are mutable there object as a buffer that can contain a string with the ability to grow from zero characters to the buffer's current capacity. Until you exceed that capacity, the string is assembled in the buffer and no object is allocated or released. If the string becomes longer than the current capacity, the StringBuilder object transparently creates a larger buffer. The default buffer initially contains 16 characters



Recent Post

 
Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.