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 can we register exception filter globally?
How many types of validation controls are provided by ASP.NET?
Define session in asp.net.
How to make paging concepts in datagrid in ASP.NET?
0 Answers Sans Pareil IT Services,
How long do session variables last?
What is cookies cache and session?
Define Query Interface,Adref,Release?
What is an example of an application service provider?
Is it possible to apply themes to an asp.net application? If yes, then how?
What are user controls and custom controls ?
What is the differances between a abstract calss and interface
what is view state
5 Answers Microsoft, Siebel Systems,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)