How to access One Page query string to Other Page

Jak
Jak
908 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: 9601
Total Answered: 1
Total Marked As Answer: 0
Posted On: 15-Oct-2014 00:26

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
4916 Points
27 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