Skip to content
Loading
  • Vinay Singh
    0
    Hi Try this 
     
    1. HttpCookie myCookie = new HttpCookie("MyTestCookie");  
    2. myCookie = Request.Cookies["MyTestCookie"];  
    3.   
    4. // Read the cookie information and display it.  
    5. if (myCookie != null)  
    6.    Response.Write("<p>"+ myCookie.Name + "<p>"+ myCookie.Value);  
    7. else  
    8.    Response.Write("not found");  
    https://msdn.microsoft.com/en-us/library/aa287533(v=vs.71).aspx
    https://forums.asp.net/t/1824306.aspx?Set+cookie+with+javascript+and+get+it+with+asp+net 
    0