Response.Write("<script>alert('愿望字数不能超过50个!!')</script>");
Response.Write("<script>window.open('liustar.aspx','_self')</script>");
打开新的窗口并传送参数: //传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)</script>")
为按钮添加对话框Button1.Attributes.Add("onclick","return confirm(’确认?’)");button.attributes.add("onclick","if(confirm(’are you sure?’)){return true;}else{return false;}")
Response.Write("<script>window.open('liustar.aspx','_self')</script>");
打开新的窗口并传送参数: //传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)</script>")
为按钮添加对话框Button1.Attributes.Add("onclick","return confirm(’确认?’)");button.attributes.add("onclick","if(confirm(’are you sure?’)){return true;}else{return false;}")