meiwn

统计

常用链接

好的网站

阅读排行榜

评论排行榜

小技巧

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.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
  3.删除表格选定记录

int intEmpID = (int)MyDataGrid.Da阅读全文

posted @ 2006-09-23 09:48 努力学习.NET 阅读(81) | 评论 (0) 编辑