摘要: 首先看看效果一:效果二:实现上面效果,Insus.NET 是使用下面例子进行修改:http://www.cnblogs.com/insus/archive/2012/10/29/2744721.html效果一变动代码如下:View Code //foreachListPagerobjPg=newPager();objPg.PagerCollections().ForEach(delegate(Pagerp){TableRowtbr=newTableRow();tbr.ID="tr"+p.ID.ToString();//设置背景颜色tbr.BackColor=System.D 阅读全文
posted @ 2012-10-29 15:45 Insus.NET 阅读(3404) 评论(0) 推荐(3) 编辑
摘要: 动态产生asp:Table控件,并加入PlaceHolder容器中,然后把List<T>数据绑定至asp:Table控件中显示。首先创建一个对象,这是个纸张对象。有ID和Size两个attribute。 在对象中,还产生一个Collection集合,存储纸张类型。Pager usingSystem;usingSystem.Collections.Generic;usingSystem.Data.SqlClient;usingSystem.Linq;usingSystem.Web;///<summary>///SummarydescriptionforPager///&l 阅读全文
posted @ 2012-10-29 14:37 Insus.NET 阅读(2357) 评论(6) 推荐(2) 编辑