Answer Posted / 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 |
Post New Answer View All Answers
How can u debug your .net application?
What is the difference between exe and dll?
Explain asp.net web forms.
Define reflection in .net?
What are custom controls?
What is view state management in asp net?
What is the use of session in web application?
About CLR, reflection and assemblies?
Which is faster viewdata or viewbag?
Is global asax mandatory?
How to sign out from forms authentication?
Apart from IDE what are the enhancements in asp.net 2.0?
What is a SESSION and APPLICATION object?
What is the difference between custom controls and user controls?
How to send a DataReader as a parameter to a remote client ?