:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Microsoft Related >> ASP.NET


Question How do you create a permanent cookie?
 Question Asked In Companies ::     < I also faced this Question! >
 Question Submitted By :: guest
  Answer Posted By  
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;



Is This Answer Correct ?    5 Yes 1 No

  surya beniwal
View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ? 866
How do u deploy ur project? 858
9. Why should we hire you over the others waiting to be interviewed? 754
What would be salary for 8+ years of experience in ASP.NET in different metro city in india? 434
i want to implement grid view value in paypal site. so how to create this code in with C# 331
what are the security certificates used in webservices? 421
benefits of migration from asp to hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to .plz give me some points which i should incorporate in my ppt thanks 652
Securitywise What are the Enhancements in 2.0? 400
Using code explain Configuration Management 365
Hi, We have a user control that have button Now we use this user control on different aspx pages. We want when we click on the user control button then button behave differently on different page (Dynamacilly). 668
what is silver light when will we use silver light, 343
can we remote debug applications with the remote debugger installed with 2002, with 2003? 753
Apart from IDE what are the enhancements in 2.0? 486
witch is the best insistute in sharpoint course.what abt future of share point course. 717 to encrpt query string in 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process? 431
E-Mail New Answers        Answer Selected Questions