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 |
What are the differences between Trace and Debug?
what is the dllhell? why we use the dllhell?
To load your generated dataset with data which method do you invoke?
Define session in asp.net.
Is post back in asp.net?
What is application variable in asp.net?
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
What is the parent class of all the web server control?
What are Http handler ?
6 Answers Accenture, BirlaSoft, Satyam, Syntel,
What is the difference between page directive include and action tag include?
In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events?
5 Answers Syntax Softtech, TCS,
What is the difference between cookie and session?
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)