Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Setting a control property

Thread Tools

Setting a control property

Chris Kennedy
Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the value of a Master page's control's property using a property of the Master page Nathan Sokalski ASP .Net 25 03-04-2010 03:42 AM
Ant setting property by regexp substitution on an existing property kevin cline Java 2 07-26-2008 02:21 PM
Update Property that mapped to a child control's property ? Samuel ASP .Net Building Controls 3 01-24-2006 06:18 AM
Setting CSSClass property of Label control? Mervin Williams ASP .Net 1 04-06-2004 09:38 PM
Error Setting user control property at web form Amir Eshterayeh ASP .Net 0 11-27-2003 12:30 AM