2017年1月8日

为表格添加编号

摘要: $(function () { //$('table tr:not(:first)').remove(); var len = $('table tr').length; for (var i = 1; i < len; i++) { $('table tr:eq(' + i + ') td:fir 阅读全文

posted @ 2017-01-08 15:12 焦会锋 阅读(108) 评论(0) 推荐(0) 编辑

2016年12月25日

URL参数加密解密

摘要: /// <summary> /// DES加密字符串 /// </summary> /// <param name="encryptString">待加密的字符串</param> /// <param name="encryptKey">加密密钥,要求为8位</param> /// <returns 阅读全文

posted @ 2016-12-25 10:50 焦会锋 阅读(631) 评论(0) 推荐(0) 编辑

2016年12月24日

ListToDataTable

摘要: public static DataTable ToDataTable<T>(IEnumerable<T> collection) { var props = typeof(T).GetProperties(); var dt = new DataTable(); dt.Columns.AddRan 阅读全文

posted @ 2016-12-24 21:56 焦会锋 阅读(310) 评论(0) 推荐(0) 编辑

Linq语句与aspnetpager结合分页

摘要: public void DataBindList() { List<EnDeContent> listCon = null; int pageSize = 10; int pageIndex =0; string key = txtKey.Text.Trim(); AspNetPager.Recor 阅读全文

posted @ 2016-12-24 16:24 焦会锋 阅读(105) 评论(0) 推荐(0) 编辑

2016年12月22日

分页加查询的sql语句

摘要: "SELECT TOP(@pagesize) * FROM T_News WHERE(NewsTitle LIKE @newskey OR NewsContent LIKE @newskey) AND Id NOT IN(SELECT TOP ((@pageindex-1)*@pagesize) I 阅读全文

posted @ 2016-12-22 15:51 焦会锋 阅读(302) 评论(0) 推荐(0) 编辑

2016年12月18日

nvarchar类型自动增长

摘要: ,Col AS 'XH' + RIGHT('0000' + RTRIM(ID),4) 阅读全文

posted @ 2016-12-18 12:05 焦会锋 阅读(133) 评论(0) 推荐(0) 编辑

2016年12月15日

C# aspnetpager分页

摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default4" %> <%@ Register Assembly="AspNetPager" Namespace="Wuqi.We 阅读全文

posted @ 2016-12-15 14:30 焦会锋 阅读(935) 评论(0) 推荐(0) 编辑

2016年12月7日

WebForm中TreeView的使用

摘要: protected void Page_Load(object sender, EventArgs e) { DatabaseBind(); TreeView1.ShowLines = true; TreeView1.ExpandDepth = 1; } public void DatabaseBi 阅读全文

posted @ 2016-12-07 21:26 焦会锋 阅读(335) 评论(0) 推荐(0) 编辑

2016年11月26日

html 各个标签初始化

摘要: html,body,div,ul,li,ol,h1,h2,h3,h4,h5,h6,span,input{ margin:0;padding:0;}body{font:12px/1.5em "宋体",arial; color:#3c3c3c;}h1,h2,h3,h4,h5,h6{font-size:: 阅读全文

posted @ 2016-11-26 19:40 焦会锋 阅读(2058) 评论(0) 推荐(0) 编辑

2016年11月23日

权限关系表

摘要: 阅读全文

posted @ 2016-11-23 15:38 焦会锋 阅读(106) 评论(0) 推荐(0) 编辑

导航