Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
setting a user control to the dialog window
posted

Hi,

 

I have a dialog window to which I need to assign a UserControlURL property dynamically. I do this on a button click event.

I am setting the DialogWindow.ContentPane.UserControlURL ="somecontrol.ascx"

I am setting the visibility to true and window state to normal. However, nothing shows up in the dialog window. And the Page Load event of the user control does NOT fire. When I refresh the page, the Page load of that user control fires up (because of the USerCOntrolProperty is set).

What I need is the Page Load of the User Control to be fired after I set the property. IS this achieveble?

Parents
No Data
Reply
  • 530
    posted

    Actually I dont think I made sense. I need to dynamically load a user control into the Web Dialog WIndow.

    Is this achievable? THe reason I want to do it dynamically is because, I need to pass a query string to the user control which can be determined only at run time.

Children
No Data