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 |
How do you associate two or more validators with a single input control? What do you need to do to prevent space from being reserved for a validation control thatpasses its validation test?
What is session management in web application?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
Explain asp.net application life cycle?
Where do you store the information about the user?s locale?
I am trying to redirect another site on button click.
Have you used microsoft dataaccess blocks and Exception blocks?
How can you get public key information?
when using personlization, how do you access over setting at runtime?
What are the different Key TreeView Properties in Asp.net 2.0?
Can we use multiple web.config files in an sigle appliction?
Difference between server.Execute and response.redirect ?
5 Answers Accenture, Keane India Ltd,