摘要: View Code 1 无标题页 2 3 13 14 15 "form1" runat="server">16 17 "GridView1" runat="server" AutoGenerateColumns="False">18 19 20 21 "checkbox" value=""O... 阅读全文
posted @ 2011-11-24 10:55 javaoraspx 阅读(138) 评论(0) 推荐(0) 编辑
摘要: View Code /// /// 更新某个节点中的值 /// private void updata() { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(AppDomain.CurrentDomain.SetupInformatio... 阅读全文
posted @ 2011-11-23 16:23 javaoraspx 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 目的:记录页面异常日志 首先引用log4net.dll(可以去官网下载或http://files.cnblogs.com/xyong/log4net.zip下载) web.config 简单配置: 在configuration 之后添加--- View Code "log4net" type... 阅读全文
posted @ 2011-11-01 10:06 javaoraspx 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 上篇文章写的是 Model对象中的值向页面控件赋值. 本篇文章则与之相反,页面控件中的向Model对象赋值. 不多说......code! cs代码: View Code 1 protected void Button1_Click(object sender, EventArgs e) ... 阅读全文
posted @ 2011-10-31 10:22 javaoraspx 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 一个表中含有N多个字段,如果需要全部显示,你将会怎么做? 如果你还在手动绑定,不觉得太过于烦躁了吗? 不多说,直接实例: 1 .目标页面: 人懒,就3个控件吧....... cs代码: 只需要调用 SetModelValueToControl() 方法就行了. SetModelValueT... 阅读全文
posted @ 2011-10-28 11:19 javaoraspx 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 这几天一直接触FusionChartFree做报表.一开始使用继承和多态.但是因为属性过多,最终选择放弃.最后选择使用xml 进行配置.因水平有限,难免出现错误,降低性能. FusionChart 中我分为2个系列,一个是简单图表,另一个为复杂图表.直接上代码: 简单图表View Code public class SingleChart : BaseChart { bool _istrendlines; /// <summary> /// 是否添加 标准线 对于 Column2D Column3D 有效 /// <... 阅读全文
posted @ 2011-10-27 16:39 javaoraspx 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 第一次使用NPOI.觉得很强大.........简单代码:View Code 1 using System; 2 using System.Data; 3 using System.Configuration; 4 using System.Collections; 5 using System.Web; 6 using System.Web.Security; 7 using System.Web.UI; 8 using System.Web.UI.WebControls; 9 using System.Web.UI.WebControls.WebParts;10 using System. 阅读全文
posted @ 2011-10-27 15:57 javaoraspx 阅读(301) 评论(0) 推荐(0) 编辑