Some Storage Property in C#

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 865
hi
i post the code.

Some Storage Property in C#
//Cookie
HttpCookie cookieCreate = new HttpCookie("HttpBrowserCookieCheck");
cookieCreate.Value = "UserName";

HttpCookie cookieCheck = null;
cookieCheck = Request.Cookies["HttpBrowserCookieCheck"];

//Session
Session["Username"] = "dotnetfunda";

//ViewState
ViewState["Username"] = "AspDotnet";

Comments or Responses

Login to post response