onclick="return confirm('确定删除该条记录?')"
相关推荐
ASP.NET程序中常用代码汇总
1. 打开新的窗口并传送参数: //传送参数: response.write(“<script>window.open(‘*.aspx?id=”+this.DropDownList1.SelectIndex+”&id1=”++”‘)</script>”) //接收参数: string a = Request.QueryString(“id”); string b = Request.QueryString(“id1”);2.为按钮添加对话框 Button1.Attributes.Add(“onclick”,”return confirm(‘确认?’)”); button.attribute
ASP.NET程序中常用的三十三种代码
ASP.NET程序中常用的三十三种代码,在工作学习中会非常经常性地使用。
.NET常用功能和代码
response.write("window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')")
ASP.NET常用代码
1. 打开新的窗口并传送参数: 传送参数: response.write("window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')") 接收参数: string a = Request.QueryString("id"); string b = Request.QueryString("id1"); 2.为按钮添加对话框 传送参数: response.write("window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')") 接收参数: string a = Request.QueryString("id"); string b = Request.QueryString("id1"); 2.为按钮添加对话框 Button1.Attributes.Add("onclick","return confirm('确认?')"); button.attributes.add("onclick","if(confirm('are you sure...?')){return true;}else{return false;}") 3.删除表格选定记录 int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex]; string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString() ……………………
ASP.NET常用源代码
传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"); string b = Request.QueryString("id1");


