打开新窗口或标签.....

打开新窗口或标签.....

问题描述:



i有一个按钮点击事件,在这个事件中,我在其他页面中传递查询字符串,这样



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



我的问题是如何在此事件中使用查询字符串



感谢提前

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

先做一些谷歌: -



或尝试这样 -

do some google first:-

or try like this-
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);
}