摘要: 1 //XML转换为对象操作类 2 3 //一,XML与Object转换类 4 5 using System.IO; 6 using System.Runtime.Serialization.Formatters.Binary; 7 using System.Text; 8 using System.Xml; 9 using System.Xml.Serialization; 10 11 namespace WebApplication1 12 { 13 public sealed class XMLSerilizable 14 { 15 ... 阅读全文
posted @ 2013-03-09 21:24 张小三、 阅读(3821) 评论(0) 推荐(0) 编辑
摘要: 1 protected void CopyToExcel() { 2 Response.Clear(); 3 Response.Buffer = true; 4 Response.Charset = "utf-8"; 5 Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("test", System.Text.Encoding.UTF8) + ".xls"); 6 阅读全文
posted @ 2013-03-09 21:22 张小三、 阅读(1335) 评论(1) 推荐(0) 编辑
摘要: //要在GridView中加入如下属性(前台还是后台看你的习惯了。)//实现分页AllowPaging="true"//一页数据10行 PageSize="10"// 分页时触发的事件OnPageIndexChanging="gvwDesignationName_PageIndexChanging"//在服务器事件里protected void gvwDesignationName_PageIndexChanging(object sender, GridViewPageEventArgs e){gvwDesignationName. 阅读全文
posted @ 2013-03-09 21:15 张小三、 阅读(2298) 评论(2) 推荐(0) 编辑