Skip to main content

Posts

Showing posts from December, 2012

Read cookies value using C#.net Asp.Net

Introduction: In my previous article I have explained about Delete browser cookie using C#.Net,Asp.Net . In this article I am going to explain about how to delete the browser cookies using C#.Net code.   Explanation: Read a string from the   Cookies   collection using the cookie's name as the key. The following example reads the value of cookie named   “name”   from the browser   cookies.

Delete browser cookie using C#.Net,Asp.Net

Introduction: In my previous article I have explained about How to Add httpcookie using C#.net . In this article I am going to explain about how to delete the browser cookies using C#.Net code. Explanation: You cannot directly delete a cookie on a user's computer. However, you can direct the user's browser to delete the cookie by setting the cookie's expiration date to a past date.  

Add httpcookie using c#.net

Introduction: In my previous article I have explained about how to Remove hash tag from the current url-Javascript . In this article I am going to explain about how to add HttpCookie using  C# code. Explanation: To below method   is used to add HttpCookie using C# code. We need to pass the cookie name and cookie value as the input to this method.

Remove hash tag from the current url-Javascript

Introduction: In my previous article I have explained about Move items in drop down list from left to right using jQuery . In this article I am going to explain about how to remove hash tags from the current url using javascript . Explanation: To below code is used to remove the hash tags from the current url and to reload the page with the new url(without hash tags).