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 |
can we call web service from the browser?
List the events in page life cycle.
Who will magage un-managed code?
Which is faster union or union all?
How to use DevExpress controls
How to consume a webservice in a windows application without adding through the web reference?
What are the 4 tenants of SOA/D.
What is CTS, CLS and CLR ?
20 Answers CGI, Palm Technology, Reliable Technology, Satyam, Synergy, TCS,
Explain Generics?
different architectures of asp.net?
Clearly Explain the ispostback
Where does the Web page belong in the .NET Framework class hierarchy?
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)