How to access One Page query string to Other Page

Jak
Jak
Member
352 Points
151 Posts

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

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
Moderator
1170 Points
210 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
banner

Blog

Active User (2)

 Log In to Chat