11 2016 档案
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 using System.Data; 8 using System.Data...
阅读全文
摘要:BoundField 默认的数据绑定类型,通常用于显示普通文本 CheckBoxField 显示布尔类型的数据。绑定数据为TRUE时,复选框数据绑定列为选中状态;绑定数据为FALSE时,则显示未选中状态。在正常情况下,CheckBoxField显示在表格中的复选框控件处于只读状态。只有GridVie
阅读全文
摘要:1 /// 2 /// 用于截取指定长度的字符串内容 3 /// 4 /// 用于截取的字符串 5 /// 截取字符串的长度 6 /// 返回截取后的字符串 7 public string SubStr(string sString,int nLength) 8 { 9 if (sString.Len...
阅读全文
摘要:web.config <configuration> <connectionStrings> <add name="constr" connectionString="server=.\sqlexpress;database=db2016;uid=sa;pwd=123;" /> <add name=
阅读全文
摘要:web.config <configuration> <connectionStrings> <add name="constr" connectionString ="server=.\sqlexpress;database=db2016;uid=sa;pwd=123;"/> </connecti
阅读全文
摘要:验证电子邮件 \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* \S+@\S\.\S+ 验证网址 HTTP://\S+\.\S+ 验证邮政编码 \d{6} 其他常用正则表达式 [0-9] 表示0-9十个数字 \d* 表示任意个数字 \d{3,4}-\d{7,8}
阅读全文
摘要:string filePath = FileUpload1.PostedFile.FileName;//获取上传文件的路径 string fileName = filePath.Substring(filePath.LastIndexOf("\\") + 1);//获取文件名称 string filesize = Convert.To...
阅读全文