摘要:
//分页通用类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... 阅读全文