1. 打开新的窗口并传送参数: -;Ij ,
/>X"'G
传送参数: l+r3|b
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") &y+)xe:&S
r.ib"W#4
接收参数: U)JwoO
string a = Request.QueryString("id"); H/^t]bg,
string b = Request.QueryString("id1"); sK/Z'h{|
Qn!KL0w
2.为按钮添加对话框 khb/"VYd
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); \c\z 6;j
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") $/FL)m8.3
S\S31pYT
3.删除表格选定记录 6k6}SlN[
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; 0%
zy 6{
string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() 9=}&evGm89
/=@V5)
4.删除表格记录警告 &C