All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
提高效率,精选ASP.NET实用代码片段_[Asp.Net教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/1/30 1:36:47 Browse times: 316 Comment times: 0

提高效率,精选ASP.NET实用代码片段_[Asp.Net教程]


Head photo

image
Go homepage
Upload pictures
Write articles

提高效率,精选ASP.NET实用代码片段_[Asp.Net教程] 1. 打开新的窗口并传送参数:
传送参数:
response.write("")
接收参数:
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()
4.删除表格记录警告



5.点击表格行链接另一页





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.