www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

What is Cookie Dictionary?-interview04032012

A cookie dictionary is a single cookie object that stores multiple pieces of information. You use the Values property to access and assign new values to the cookie dictionary. Give an example using Cookie Dictionary? //Code to create a Cookie Dictionary HttpCookie CookieObject = new HttpCookie("UserPreference"); //Use the Values property to assign new values to the cookie dictionary CookieObject.Values.Add("UserName", "David"); CookieObject.Values.Add("Country", "USA"); CookieObject.Values.Add("PreviousVisit", DateTime.Now.ToString()); CookieObject.Expires = DateTime.MaxValue; //Add the Cookie to the client machine using the Response object Response.Cookies.Add(CookieObject); //Code to read the Cookie created above HttpCookie ObjectCookie = Request.Cookies["UserPreference"]; string UserName = ObjectCookie.Values["UserName"]; string Country = ObjectCookie.Values["Country"]; string PreviousVisit = ObjectCookie.Values["PreviousVisit"];

0 comments:

Popular Posts