1. 打开新的窗口并传送参数: 3
*o
l
lW,rzJ1
传送参数: cTKj1)!z?X
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") :VPZGzK4
<B;l).[6
接收参数: r )cGee
string a = Request.QueryString("id"); e1dT~l
string b = Request.QueryString("id1"); [Ng#/QXk{
^G,]("di`
2.为按钮添加对话框 tZtyx;EP
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); zkdyfl5
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") G<C[A
4Lx#5}P
3.删除表格选定记录 `N~;X~XFk
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; -Fodqq@,
string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() _u^ S[
)g9&fGYf
4.删除表格记录警告 R4<