Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi
i have one button click event and in this event i have pass query string in other page like this

Response.Redirect("product.aspx?sid=" + product_id);

and my problem is how to open new window or new tab in this event and with query string

Thanks to advance
Posted

1 solution

do some google first:-

or try like this-
C#
protected void btnNewEntry_Click(object sender, EventArgs e)
{
   string s = "History.aspx?Name=" + "ABC";
Page.ClientScript.RegisterStartupScript(this.GetType(), "OpenWindow", "window.open('" + s + "','_newtab');", true);
}
 
Share this answer
 
v2
Comments
[no name] 25-Jan-14 2:20am    
my question is i have pass also query string
TrushnaK 25-Jan-14 2:42am    
i have updated my answer check it..
[no name] 29-Mar-14 0:22am    
Thanks
TrushnaK 29-Mar-14 0:45am    
i it is found helpful then mark it as 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