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
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
Name the two properties are on every validation control?
Differentiate between a hyperlink control and a linkbutton control.
Describe the method to create a permanent cookie?
What are triggers of an updatepanel?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What is difference between or and orelse?
Explain about asp.net state management?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
How to find last error which occurred?
Explain method to handle error using HttpError in Web API?
What are sql joins?
How do I use response redirect?
What is the exact purpose of http handlers?
Name the namespace which is used by ado.net?