1. 打开新的窗口并传送参数: <;!#+|L/
'W p~8}i@
传送参数: 8;(3fSNC
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") ]_! .xx>
Lhxg5cd
接收参数: ,#(k|Zztc
string a = Request.QueryString("id"); Tnnj8I1v
string b = Request.QueryString("id1"); {_jbFJ
s`dUie}y<
2.为按钮添加对话框 l+^4y_
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); Qf@ha
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") !<0 `c
,GF(pCZzG
3.删除表格选定记录 )JR&
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; =$<