Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
Inheritance Problem - protected override void CreateChildControls()
posted

hi

when in inherit   webdorpdown  the CreateChildControls() not called,  i place a break point in CreateChildControls()  method,  but break point  is not hitting,  it will work for asp.net native contorls

 

pls help me hout

Parents
No Data
Reply
  • 24671
    posted

    Hi,

    From your code it is not clear to me where exactly the control gets data bound. EnsureChildControls is called only if there is a data source assigned (either DataSourceID or a DataSource object, as it is in your case). 

    I am sure if you assign the DataSource property , in Page_Load for example, it will work fine.

    Thanks,

    Angel 

Children