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 the use of dispose method?
What is sdlc process?
What are strong names?
How to use ipostback?
How to comment out asp.net tags?
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
Give a few examples of page life cycle events.
Describe the master page.
What is the difference between user control and custom control?
How will you load dynamic assembly? How will create assesblies at run time?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
What is the difference between the get method () and post method ()?
Why do we use sessions?
What is odata in web api?
Explain the difference between globalization and localization techniques