摘要:
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 ... 阅读全文
摘要:
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 阅读全文
摘要:
//要在GridView中加入如下属性(前台还是后台看你的习惯了。)//实现分页AllowPaging="true"//一页数据10行 PageSize="10"// 分页时触发的事件OnPageIndexChanging="gvwDesignationName_PageIndexChanging"//在服务器事件里protected void gvwDesignationName_PageIndexChanging(object sender, GridViewPageEventArgs e){gvwDesignationName. 阅读全文