首页 > 网站 > 建站经验 > 正文

ASP.NET实用代码片段

2019-11-02 15:54:34
字体:
来源:转载
供稿:网友

   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;}")

  

YY4480首播影院[www.aikan.tv/special/YY4480shouboyingyuan/]
3.删除表格选定记录

  int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex];

  string deleteCmd = "DELETE from Employee where emp_id = " + intEmpID.ToString()

  4.删除表格记录警告

ASP.NET实用代码片段 电脑高手

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表