1. 打开新的窗口并传送参数: 3?Y%|ZVM
_6THyj$f
传送参数: K2nq2Gbn
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 1iaNb[:QX
N J:]jd
接收参数: {>OuxVl??k
string a = Request.QueryString("id"); 7M}T^LC
string b = Request.QueryString("id1"); i\2MphS
U6FM`w<
2.为按钮添加对话框 l3n* b6
Button1.Attributes.Add("onclick","return confirm(’确认?’)"); C]*9:lK
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}") lW'6rat
~CldqXeI
3.删除表格选定记录 eB/3MUz1
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; #^<