1. 打开新的窗口并传送参数: (SRY(q
|iHMAo
传送参数: C~pas~
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") !ddyJJ^a
@6'~RD.
接收参数: c},pu[nL
string a = Request.QueryString("id"); h_(M#gG
string b = Request.QueryString("id1"); e El)wZ,A
L6_%SGY_iE
2.为按钮添加对话框 r"2lcNE
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); ]_h3
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") I0zx'x)F
%!nI]|
3.删除表格选定记录 v`,!wS
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; !0@4*>n
string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() <9,h!
BjfVNF;hk:
4.删除表格记录警告 ^ 4<