摘要:使用Attributes,用txtPassword.Attributes.Add("value",实体对象.Password);
        阅读全文
        
            posted @ 2013-12-11 10:03
| 
 | |||
| 随笔分类 - .NET知识
摘要:使用Attributes,用txtPassword.Attributes.Add("value",实体对象.Password);
        阅读全文
 
            posted @ 2013-12-11 10:03 
摘要:public DataTable GetPagedTable(DataTable dt) { int PageSize = AspNetPager1.PageSize; int PageIndex = AspNetPager1.CurrentPageIndex; if (PageIndex == 0) return dt; DataTable newdt = dt.Copy(); newdt.Clear(); int rowbegin = (PageIndex - 1) * PageSize; int rowend = PageIndex * PageSize; if (rowbegin &g
        阅读全文
 
            posted @ 2012-07-29 09:30 
摘要:在asp.net中导出excel 中比较通行的做法是Response.ContentType = "application/vnd.ms-excel";然后直接向里面扔 html 的table但是有中文的时候 老出现乱码,有很多解决方案,但都不能通盘解决,我在蓝色小铺上发现这篇文章方法不错,借鉴就是在 输出html两头输出 Response.Write("<html><head><meta http-equiv=Content-Type content=\"text/html; charset=utf-8\">
        阅读全文
 
            posted @ 2012-04-09 08:57 
摘要:转载自:http://www.cnblogs.com/cfam/archive/2006/11/17/563441.htmlasp.net 对xml文件的读写,添加,修改,删除操作usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web
        阅读全文
 
            posted @ 2012-02-27 18:44 
摘要:形式语法结果注释数字{0:N2}12.36数字{0:N0}13货币{0:c2}$12.36货币{0:c4}$12.3656货币"¥{0:N2}"¥12.36科学计数法{0:E3}1.23E+001百分数{0:P}12.25%P and p present the same.日期{0:D}2006年11月25日日期{0:d}2006-11-25日期{0:f}2006年11月25日 10:30日期{0...
        阅读全文
 
            posted @ 2010-10-16 08:01 
摘要:验证码生成类ValidateNumber.csusingSystem;usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.Web.UI;usingSystem.Drawing.Drawing2D;usingSystem.IO;/**////<summary>///生成验证码的类///</summary>pu...
        阅读全文
 
            posted @ 2009-11-10 14:38 
 | |||