C
Chris Kennedy
I have a custom control which uses an XML file in the CreateChildControls event, the XML file is used to determine how many and what composite form elements to add. I can set the path to a different XML file on Page_Load event of the parent page. When I press a button even if contains no code it triggers a postback (which is normal). Even though I am resetting the location value in Page_load event I get a "The path is not of a legal form" error.
It is like on the postback the XML value is not being passed to the control again. Ideally I want to point the control at different XML files and set this property from various different buttons. Is there somehthing I don't understand about the state in the control. I thought it would reinstantiated after each postback. And I would just be able to set in the Page_load event. When I hardcode the XML path to the XML file it works fine.
It is like on the postback the XML value is not being passed to the control again. Ideally I want to point the control at different XML files and set this property from various different buttons. Is there somehthing I don't understand about the state in the control. I thought it would reinstantiated after each postback. And I would just be able to set in the Page_load event. When I hardcode the XML path to the XML file it works fine.