2016年12月8日

023. Asp.net参数化查询预防Sql注入攻击

摘要: 1 /// 2 /// 参数化查询预防SQL注入式攻击 3 /// 4 public int checkLogin(string loginName, string loginPwd) 5 { 6 string strsql = "select count(*) from tb_LoginUser where UserName=@U... 阅读全文

posted @ 2016-12-08 16:53 印子 阅读(278) 评论(0) 推荐(0) 编辑

022. ASP.NET为DataSet中数据集添加关系及动态创建主子表和添加主子表关系

摘要: 截图如下: 动态添加主子表, 且动态创建主子表的关系: 阅读全文

posted @ 2016-12-08 16:48 印子 阅读(982) 评论(0) 推荐(0) 编辑

021. asp.net两个DataSet数据集的合并

摘要: protected void Page_Load(object sender, EventArgs e) { DataSet dsSource = new DataSet(); //创建源数据集 DataTable dt = CreateDataTable(); //创建本地表 dsSource.Tables.A... 阅读全文

posted @ 2016-12-08 13:41 印子 阅读(1352) 评论(0) 推荐(0) 编辑

020. asp.net访问Excel文件

摘要: p... 阅读全文

posted @ 2016-12-08 12:05 印子 阅读(153) 评论(0) 推荐(0) 编辑

019. Asp.net将SqlServer中的数据保存到xls/txt中

摘要: using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlCon... 阅读全文

posted @ 2016-12-08 11:55 印子 阅读(214) 评论(0) 推荐(0) 编辑

导航