Posted on: 8/5/2003 10:49:08 AM | Views : 414

I have a page with a number of web user controls (.ascx) being dynamically loaded onto the page. Each of these web user controls have buttons that allow me to close, minimise, maximise and move the controls. My problem is that, when I press one of these buttons, the page is reloaded fine. But the controls inside the web user controls only work when I click on them the second time. I know why this is - because asp.net calls page_load, then adds event handlers and then calls the event function for the event that has happend. This means that the web user contols added in the button click function are too late for the event handler handler ! Personally, I think microsoft have made a big blunder in doing the event handling in this order. I was wondering anyone has any idea how I could get around this. Any help would be greatly appriciated. I would ideally like just one line telling the page to re-look at the controls on the page and re-load the event handler stuff. Jagdip Please hav ...

Go to the complete details ...