传送参数:
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&name="+...+"’)</script>")
接收参数:
string a = Request.QueryString("id");
string b = Request.QueryString("name");
本文介绍了一个使用ASP.NET进行窗口打开并传递参数的例子。通过response.write方法将选择的下拉框索引值及其它参数拼接成URL,并利用window.open打开新窗口。接收端通过Request.QueryString获取传递过来的参数。
传送参数:
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&name="+...+"’)</script>")
接收参数:
string a = Request.QueryString("id");
string b = Request.QueryString("name");

被折叠的 条评论
为什么被折叠?