Andrey
Andrey

Reputation: 479

How to open a modal aspx page from the devexpress aspxpopupcontrol

I have a button which should open a web form from my project in a modal window. How can I achieve that with the devexpress popup control?

Upvotes: 0

Views: 8426

Answers (3)

Niranjan Singh
Niranjan Singh

Reputation: 18290

Use the Popup Control - Content URL to show another webform in the control. open popup on the button's client click event.

example:

<dx:ASPxPopupControl ID="popup" runat="server" ContentUrl="~/ContentPageWithTextBox.aspx"
        Top="100" ClientInstanceName="clientPopup" CloseAction="CloseButton">
        <ClientSideEvents Shown="OnShown" />
    </dx:ASPxPopupControl>

Check this search Result
Reference:
How to manipulate client-side objects within a ASPxPopupControl with the specified ContentUrl - check example also.

Hope this help...

Upvotes: 1

Mikhail
Mikhail

Reputation: 9300

See ASPxPopupControl Online Demos and the Code Central Examples to learn more on how accomplish this task.

Upvotes: 0

Filip
Filip

Reputation: 3347

Here is sample code:

<input id="openBtn" type="button" value="Open popup" 
       onclick="myPopup.SetContentUrl('http://www.google.com');myPopup.Show();" />                

<dx:ASPxPopupControl runat="server" ClientInstanceName="myPopup" Modal="True" 
                     CloseAction="CloseButton" Width="500px" Height="400px"/>

ASPxClientPopupControl members
ASPxPopupControl members

Upvotes: 0

Related Questions