Skip to main content

Posts

Showing posts from July, 2013

Get date and time for Indian Standard Time(IST) in c#

DateTime indiantime;     protected void Page_Load( object sender, EventArgs e)     {        indiantime = getIndianStandardTime();        string temptime= indiantime.ToString( dddd, MMMM dd yyyy [HH:mm:ss]);     }   public DateTime getIndianStandardTime()     {         TimeZoneInfo IND_ZONE = TimeZoneInfo .FindSystemTimeZoneById( "India Standard Time" );         return TimeZoneInfo .ConvertTimeFromUtc( DateTime .UtcNow, IND_ZONE);     }

How to Kill A Session or Session ID (ASP.NET/C#)

The  Abandon  method should work ( MSDN ): Session . Abandon (); If you want to remove a specific item from the session use ( MSDN ): Session . Remove ( "YourItem" ); EDIT: If you just want to clear a value you can do: Session [ "YourItem" ] = null ; If you want to clear all keys do: Session . Clear (); If none of these are working for you then something fishy is going on. I would check to see where you are assigning the value and verify that it is not getting reassigned after you clear the value. Simple check do: Session [ "YourKey" ] = "Test" ; // creates the key Session . Remove ( "YourKey" ); // removes the key bool gone = ( Session [ "YourKey" ] == null ); // tests that the remove worked

Godaddy Hosting Plan Comparison

Hosting Plan Comparison Below are the plans that match your hosting plan comparison search. Compare each feature to make sure it will meet your needs. You can remove hosting plans from the comparison by using the "Remove" link at the bottom of every hosting plan. If you have a question about a particular feature, you can roll over its name on the left or read through our Basic Web Hosting Options and Advanced Hosting Options articles. Be sure to read the reviews of web hosts that you are considering using. When you are ready to buy, click on the "Buy Now" button or click on the "Learn More" link to go to the web host's web site. Hosting Plan Name GoDaddy's Economy Linux GoDaddy's Economy Windows GoDaddy's Deluxe Linux GoDaddy's Deluxe Windows GoDaddy's Ultimate Linux GoDaddy's Ultimate Windows GoDaddy's Economy Linux GoDaddy's Economy Windows GoDaddy's Deluxe L