现在的位置: 首页 > 综合 > 正文

System.Web.UI.Control核心方法 事件及属性

2012年05月07日 ⁄ 综合 ⁄ 共 2112字 ⁄ 字号 评论关闭
//System.Web.UI.Control的 核心方法,属性和事件//    
     /*----------------------------------------------------------------------*/
        
public class Control: IComponent,IDisposable,IParseAccessor,IDataBindingsAccessor
        {
          
protected virtual void Render(HtmlTextWriter);
          
public            void RenderControl(HtmlTextWriter);
          
protected virtual void RenderChildren(HtmlTextWriter);
          
public    virtual bool Visible{get;set;}
            
          
//child control management
          protected virtual void CreateChildControls();
          
protected virtual void EnsureChildControls();
          
public    virtual Control FindControl(string);
          
public    virtual bool  HasControls();
          
public    virtual ControlCollection Controls   {get;}
          
public    virtual NamingContainer              {get;}
          
protected         bool ChildControlsCreated    {get;set;}
          
          
//identification
          public virtual string ClientID                 {get;}
          
public virtual string ID                       {get;set;}
          
public virtual string UniqueID                 {get;}
          
    
          
//accessors
          public virtual Page Page                       {get;set;}
          
public virtual Control Parent                  {get;}
          
protected virtual HttpContext Context          {get;}
          
    
          
//state management
          public virtual bool EnableViewState            {get;set;}
          
protected virtual StateBag ViewState           {get;}
          
protected        bool HasChildViewState        {get;}
          
protected        bool IsTrackingViewState      {get;}
    
          
//events
          public event EventHandler DataBinding;
          
public event EventHandler Init;
          
public event EventHandler Load;
          
public event EventHandler PreRender;
          
public event EventHandler Unload;
          
    
         
//Misc
          public virtual void DataBind();
          
public         string ResolveUrl(string);

  }
     /*------------------------------------------------------------------------*/     

抱歉!评论已关闭.