im sending a value from one page in aspx to another page as shown below.
window.location=”test1.aspx?id=1″
how to access this value in codebehind or global.asax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could retrieve the id parameter from the
Requestobject in your code behind:Also you will have to fix your javascript because the url you are assigning is invalid. You have an extra
+character that should be removed: