• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 








每日三省吾身
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2011年10月24日

WebControl需要实现的2个重要接口
摘要: 1. IPostBackEventHandle:void RaisePostBackEvent(string eventArgument);详细参考:http://msdn.microsoft.com/en-us/library/system.web.ui.ipostbackeventhandler.aspx2. IPostBackDataHandle:virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection);virtual void RaisePostDataChangedEvent() 阅读全文
posted @ 2011-10-24 16:25 渔樵耕读2017 阅读(153) 评论(0) 推荐(0)
 
Control控件呈现过程中3个重要的方法
摘要: Control控件呈现过程中3个重要的方法,实现大抵如下: publicvirtualvoidRenderControl(HtmlTextWriterwriter){if(Visible)Render(writer);}publicvirtualvoidRender(HtmlTextWriterwriter){//renderitself//todo...//renderchildrenRenderChildren(writer);}publicvirtualvoidRenderChildren(HtmlTextWriterwriter){foreach(Controliteminthi... 阅读全文
posted @ 2011-10-24 15:40 渔樵耕读2017 阅读(181) 评论(0) 推荐(0)