Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have page as asp.net this page request query string .
i want to pass this query string to onther page
please any one helpme
Posted
Comments
Zafar Sultan 5-Jun-13 11:04am    
Your question is not clear. Can you explain? It seems to be a simple thing that you are unable to recall it now.

Try these,


C#
private void btnSubmit_Click(object sender, System.EventArgs e)
{
Response.Redirect("Webform2.aspx?Name=" +
this.txtName.Text + "&LastName=" +
this.txtLastName.Text);
}



And in "Webform2.aspx" page.In it's load event,

C#
private void Page_Load(object sender, System.EventArgs e)
{
this.txtBox1.Text = Request.QueryString["Name"];
this.txtBox2.Text = Request.QueryString["LastName"];
}
 
Share this answer
 
Comments
Gadosky 5-Jun-13 10:23am    
- this page pass query string use this hyber link

<asp:hyperlink id="HyperLink1" runat="server" text="details" navigateurl="<%# "flatt.aspx?id="+Eval("proid") %>" xmlns:asp="#unknown">

- i want in this page request this query to pass it other page

<asp:hyperlink id="HyperLink1" runat="server" navigateurl="~/flatpro.aspx?id= ></xml>" xmlns:asp="#unknown">
vaibhav10Dec1987 5-Jun-13 10:29am    
Hi,
You simply call a HyperLink1 click event, write a first part of code for redirecting to another page.
Try this !
VB
asp:HyperLink runat="server" ID="fpassord1" Text="Forgot Password ?" CssClass="MenuText"/asp:HyperLink>

fpassord1.Attributes["onclick"] = "javascript:return window.open('getPassword.aspx?username=test" + "&download=no',titlebar=0,toolbar=0,width=250,height=250)";
 
Share this answer
 
 
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