Get Cookie values using jQuery in ASP.Net

Last Reply 22 days ago By dharmendr

Posted 22 days ago

how to get cookie value in one page to another page use jquery with ajax call .

we have use two pages . 

it's login page. i have set cookie value.

HttpCookie cookie = new HttpCookie("IsValidLogin");

cookie["UserId"] = "12345";
Response.SetCookie(cookie);
Response.Redirect("~/Default.aspx");

i will get cookie value another page.

AjaxCall('<%= cookie.set["UserID"] %>');-- How to get here cookie value. 

Please solve my problem

You are viewing reply posted by: dharmendr 22 days ago.