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
What is custom events? How to create it?
Explain different authentication modes in asp.net?
What is smpte vc-1?
What is server infrastructure & server components?
Define the steps to set up validation control.
What are the different method of navigation in asp.net?
What is parse in asp.net?
What is the adavantage of using ASP.NET routing?
How to use a Master Database in Asp.net?
What is session handling in a webfarm, how it can work with its limits?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
What is the use of HttpHandlers? When to use this?
What is a 401 redirect?
How Can assign alias name for ASP.NET Web API Action?