1. 打开新的窗口并传送参数: .`#R%4Xl
L;t~rW!1
传送参数: [cAg'R6
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") k_^/
_5`S)G{
接收参数: 54DR .>O
string a = Request.QueryString("id"); X',0MBQ0
string b = Request.QueryString("id1"); |VEAzY|[#
2/q=l?
2.为按钮添加对话框 +7OT`e
%q
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); exKmK!FT
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") 4'b]2Mn3
cW^)$>A
3.删除表格选定记录 i1Sc/
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; 17 iq
string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() JJ3JULL2
=0yJ2[R7Do
4.删除表格记录警告 &