What is the best way to pass a value from C# code to javascript? Currently I am setting an asp.net hidden field in the Page_Load method.
Also if I pass a value using GET like
Response.Redirect("myurl.com/myPage.aspx?id=300");
how can I get the value of id from myPage using javascript?
Is there a nice way to do this in jquery?