1. 打开新的窗口并传送参数:
传送参数:
response.write(“[removed]window.open(‘*.aspx?id=”+this.DropDownList1.SelectIndex+”&id1=”+…+”‘)[removed]”)
接收参数:
string a = Request.QueryString(“id”);string b = Request.QueryString(“id1”);
2.为按钮添加对话框
Button1.Attributes.Add(“onclick”,”return confirm(‘确认?’)”);button.attributes.a