Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
firstpage.aspx :

Response.Redirect("branch?uid="+DUserName);

secondpage.aspx :

uname = Request.QueryString[0];


global.asax.cs :

C#
void Application_Start(object sender, EventArgs e)
      {
          RoutingData(RouteTable.Routes);
      }

      private void RoutingData(RouteCollection routecollection)
      {
          routecollection.MapPageRoute("Student", "Student/Profile", "~/View/StudentProfile.aspx");

}

I have used global.asax.cs to redirect to the another page. Please tell me how can I use query string?
Posted
Comments
Vinay Mistry 19-Aug-14 7:00am    
What exactly you want to pass and to how many pages?

Request.QueryString["uid"];

I Hope this will help you
 
Share this answer
 
Use this on the next page where you want to access the query stirng value....
Request.QueryString["UId"];


thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900