Explain how to pass a querystring from an .asp page to .aspx page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh NRank #4,788 · 325 reputationPosted Dec 29, 2009, 6:45 PM EST
ASP
<%
Response.Redirect "urPage.aspx?id=22"
%>
ASPX Code Behind (urPage.aspx.cs)
int myID = Convert.ToInt32(Request.QueryString["ID"]);