Author: Wardy | Posted on: 11/15/2007 4:06:13 PM | Views : 299

Hi guys,
I have a page that dynamically loads a user control based on a querystring parameter.
The user control contains html tags that load a "ContentArea" control (a basic control i created that derives from the control class).
This ContentArea control then loads a user control "the content" which can contain anything the user decides.
 
Upon testing this i have a few problems with postbacks...
i drop a button in to "the content" and double click it to generate my method stub (fairly straightforward this is pretty standard user control stuff)
i put some code in the handler, build and run the project.
The output html looked something like this ...
<input type="submit" name="ctl02$Main$ctl00$ctl00" value="Button" />
 Immediately i notice that the normal code required to handle the postback (onclick event) is not rendered.

Go to the complete details ...