asp.net - Prevent closing of ModalPopup on postback -


I am using the ModalPopupExtender control from AJAX Toolkit. This control provides a panel with the CreateUserWizard control. However, the creation of CreateUserWizard control creates a postback to the server, which closes the popup. I still keep the popup open after postback. What I can collect, I should use an UpdatePanel However, I can not seem to work it The reason is quite difficult because the structure should be

  ModalPopupExtender & lt; Panel & gt; & Lt; UpdatePanel & gt; & Lt; ContentTemplate & gt; ... & lt; / ContentTemplate & gt; & Lt; / UpdatePanel & gt; & Lt; / Cell & gt;  

I can not follow this structure because ModalPopupExtender depends on a button that is contained within the CreateUserWizard control. Therefore, it is called & lt; Asp: CreateUserWizard & gt; Can be added within. & Lt; / Asp: CreateUserWizard & gt; tag I want the submit button created in the CreateUserWizard control to force panel updates. Any suggestions on how the structure should be? My code is highly optimized, so it is too long, however, the main structure is like this:

  & lt; Asp: panel & gt; & Lt; ASP: CreateUserWizard & gt; & Lt; WizardSteps & gt; & Lt; ASP: CreateUserWizardStep & gt; & Lt; ContentTemplate & gt; // Form Control Here & lt; / Content template & gt; & Lt; CustomNavigationTemplate & gt; // The subtitle button, which is called the // Cancel button & lt; Asp: ModalPopupExtender / & gt; // References should be the cancel button here & lt; / CustomNavigationTemplate & gt; & Lt; / ASP: CreateUserWizardStep & gt; & Lt; / WizardSteps & gt; & Lt; / ASP: CreateUserWizard & gt; & Lt; / ASP: Cell & gt;  

How will the update panel be kept? Or is it a more efficient way to ensure that the ModelPop does not stop?

Thanks for any help

I managed to solve this problem Instead, without using the UpdatePanel, instead, I handled the CreateUserWizard's 'submit' button onclick event. Here, I found an example of the existing ModalPopupExtender within the CreateUserWizard control and its Show method is called & lt; CustomNavigationTemplate & gt; Leave the modal popup declaration inside the tag so that the cancel button is still accessible through it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -