How to access One Page query string to Other Page

Jak
Jak
Member
858 Points
132 Posts

I have to page Page1.Aspx?Id=MMd1 and Page2.aspx
Now I want to access Page1 Query string value into Page2
Views: 9450
Total Answered: 1
Total Marked As Answer: 0
Posted On: 15-Oct-2014 00:26

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
Teacher
4822 Points
23 Posts
         

I have solve it as:

Fetch the Query string in page 1 and redirect to other page2 as:

Response.Redirect("Page2.aspx?id="& Request.QueryString["ID"].ToString() &"");

In page 2 as:

Request.QueryString["ID"].ToString()

 

Posted On: 15-Oct-2014 00:38
 Log In to Chat