摘要:
List list = "从DAL获取的数据集合"//取出分页标签htmlint pageIndex = context.Request["pageIndex"] == null ? 1 : int.Parse(context.Request["pageIndex"]);int totalCount = 从DAL获取的总数据个数//分页标签string strNav = ShowPageNavigate(10,pageIndex,totalCount);//后台分页方法//当前页数据var pageData = dbContext.表 阅读全文
摘要:
//分页通用类public class Pager{ private int pageIndex; public int PageIndex { get; set; }private int currentPageCount;public int CurrentPageCount{ get;set;}protected string sbHtml = "";if(currentPageCount currentPageCount){ end = currentPageCount;start = end -9;}StringBuilder sb = new StringBui 阅读全文
摘要:
ckEditorUBB在线编辑器:防止XSS攻击FreeTextBox 阅读全文
摘要:
一个按钮的事件中写:string filename = Sever.UrlEncode("词库.txt");Response.AddHeader("Content-Disposition",string.Format("attachment;filename = \"{0}\"",filename));Response.WriteFile(Server.MapPath("词库.txt"));Response.End();//输出词库文件中的内容后,终止html内的内容输出过滤禁用词:public 阅读全文
摘要:
html: 用户注册 用户名 密码 ... 阅读全文
摘要:
/* 其它通用函数 */$(function() { // var General = function() { var _self = this; /* 写 cookie 操作 */ _self.SetCookie = function(c_name, value, expireTime, dhm) { var exdate = new Date(); if (dhm == "d") { exdate.setDate(exdate.getDate() + parse... 阅读全文
摘要:
js正则表达式总结1、require: /.+/,2、username: /^[\u4E00-\u9FA5A-Za-z0-9_\ ]{3,20}$/i,3、password: /^[a-zA-Z0-9\_\-\~\!\%\*\@\#\$\&\.\(\)\[\]\{\}\\?\\\/\’\”]{3,20}$/,4、number: /^\d+$/,5、money: /^(([1-9]\d*)|(([0-9]{1}|[1-9]+)\.[0-9]{1,2}))$/,6、per: /^(?:[1-9][0-9]?|100)(?:\.[0-9]{1,2})?$/,7、email: /^\w+([- 阅读全文
摘要:
CSS控制,漂亮的表格样式2008-11-04 18:58:00 | 【大中小】CONFIGURATIONSDUAL 1.8GHZDUAL 2GHZDUAL 2.5GHZLIPENGM9454LL/AM9455LL/AM9457LL/AMAPABCDual 1.8GHz PowerPC G5Dual 2GHz PowerPC G5Dual 2.5GHz PowerPC G5频率900MHz per processor1GHz per processor1.25GHz per processor2级缓存512K per processor512K per processor512K per pr 阅读全文
摘要:
jQuery.validate 的正则验证功能,包括手机号码、电话号码、邮政编码、QQ号码、IP地址、字母和数字、中文的验证等。手机号码验证以下为引用内容:jQuery.validator.addMethod("mobile", function(value, element) {var length = value.length;var mobile = /^(((13[0-9]{1})|(15[0-9]{1}))+\d{8})$/return this.optional(element) || (length == 11 && mobile.test(v 阅读全文
摘要:
1.动软Codematic2.msi2.CodeSmith 阅读全文