How do you create a permanent cookie?
Answers were Sorted based on User's Feedback
Answer / surya beniwal
write this cod on submit button : ..........
HttpCookie objCookie = new HttpCookie("UserCookie");
objCookie.Values.Add("UserName", TextBox1.Text);
objCookie.Values.Add("UserPass", TextBox2.Text);
//for permanent cookie .......
objCookie.Expires = DateTime.MaxValue;
Response.Cookies.Add(objCookie);
Response.Redirect("Default2.aspx");
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / vimal
by setting the expiry property greater than
datetime.minvalue.....
Is This Answer Correct ? | 2 Yes | 0 No |
Page Life Cycle in ASP.NET
what are partial classes and their use?
IN an ASP.NET Web application if there is any error, how can you debug?
What is different in .net 1.1 and .net 2.0?
what is value type to reference type
6 Answers AG Technologies, IBM,
How to you can limit Access to Web API to Specific HTTP Verb?
Explain the difference between value type and reference type?
What are the main requirements for caching?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
Explain what is event bubbling?
What does uri mean?
What is s2s tracking?