Setting a control property

Discussion in 'ASP .Net Building Controls' started by Chris Kennedy, May 10, 2004.

  1. I have a custom composite control which reads in information from an XML
    file in its createchildcontrols() event. I would like to be able to set this
    XML file to different places at runtime as the XML is used to determine the
    number and type of child controls and so would make the control much more
    reusable. The problem is the timing of the various events. What event on the
    parent page will be sufficently late enough for the createchildcontrols() on
    the control? My problem is I am trying to set the location of the XML file
    via a property in the control in the onLoad event of the parent page which I
    assume occurs before the instantiation of the control. Any suggestios or
    pointers. Regards, Chris.
     
    Chris Kennedy, May 10, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Amir Eshterayeh

    Error Setting user control property at web form

    Amir Eshterayeh, Nov 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    551
    Amir Eshterayeh
    Nov 27, 2003
  2. Mervin Williams

    Setting CSSClass property of Label control?

    Mervin Williams, Apr 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,536
    Scott
    Apr 6, 2004
  3. kevin  cline
    Replies:
    2
    Views:
    2,417
    Gilbert Rebhan
    Jul 26, 2008
  4. Nathan Sokalski
    Replies:
    25
    Views:
    1,469
    Nathan Sokalski
    Mar 4, 2010
  5. Samuel

    Update Property that mapped to a child control's property ?

    Samuel, Jan 23, 2006, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    195
    Steven Cheng[MSFT]
    Jan 24, 2006
Loading...

Share This Page