
C#
文章平均质量分 70
pnf
这个作者很懒,什么都没留下…
展开
-
C# 通过反射获取/设置属性值
//具体类public class A{ public int Property1 { get; set; }}A aa = new A(); Type type = aa.GetType();PropertyInfo propertyInfo = type.GetProperty("Property1");propertyInfo.SetValue(aa,原创 2013-12-12 20:33:40 · 1802 阅读 · 0 评论 -
.net页面事件顺序
public partial class _Default : Page { #region OnPreInit 第一步 protected override void OnPreInit(EventArgs e) { //检查 IsPostBack 属性来确定是不是第一次处理该页。 //创建或重新创建动态控件。 //动原创 2013-12-29 11:25:47 · 597 阅读 · 0 评论 -
.net自定义控件Control、WebControl、CompositeControl
一、呈现方法1、Control主要有以下4个方法用于呈现//该方法为入口方法public virtual void RenderControl (HtmlTextWriter writer) { this.RenderControl(writer,this.xxxAdapter); } protected void RenderControl(Ht原创 2013-12-30 16:31:25 · 1059 阅读 · 0 评论