Best Online Resource For Non-Resident Indians      SEARCH COOLNRI.COM
 HOME  FORUMS  PORTALS & REVIEWS  RECIPES  INDIAN RESTAURANTS  GROCERY  CLASSIFIEDS  MOVIES / TV  CHAT  NEWS  HOROSCOPE  PAINTINGS  CONTACT  LOGIN
Welcome Guest Search | Active Topics | Members | Log In | Register

How to use HttpCookie Options
ajeshnr
Posted: Tuesday, April 21, 2009 12:03:20 AM
Rank: Member
Groups: Member

Joined: 1/19/2009
Posts: 1
//whenever check box is checked, you need to execute below code lines:

HttpCookie aCookie = new HttpCookie("userInfo");
aCookie["userName"] = login.LstrLoginName ;
aCookie["password"] = login.LstrPassword ;
HttpContext.Current.Response.Cookies.Add(aCookie);


//Next time, whenever Login page loads, you need to execute below code lines:

HttpCookie aCookie = Request.Cookies["userInfo"];
txtuserName.text = aCookie["userName"];
txtPWD.text = aCookie["password"];

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

COOLNRI.COM 2006-2012 |  TERMS OF USE |  PRIVACY STATEMENT |  SEARCH 
FinaMetric - Affordable Effective Project Management