English 中文(简体)
如何从 dev表达式 aspxpopup control 打开一个模式化的 aspx 页面
原标题:How to open a modal aspx page from the devexpress aspxpopupcontrol

我有一个按钮, 它应该从我的工程中打开一个网络表格, 在模式窗口中打开。 如何用 dev表达式弹出控制来做到这一点?

最佳回答

使用 < a href=> "http://demos.devexaction.com/ASPxperienceDemos/Popup Control/Contentell.aspx" rel=“不跟随 nofollow noreferrr'>Popup Control - 内容 URL 在控件中显示另一个网络形式。 在按钮客户点击事件上打开弹出 。

例如:

<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.

希望这能帮上忙...

问题回答

以下是样本代码:

<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

ASPxPopcontrol 在线Demos和





相关问题
WPF control in windows forms?

I would like to create some custom UI controls that work with both WPF and Windows Forms. Is this possible? If so, can I create these controls in WPF or do I need ot use a Windows Forms control? ...

SharePoint user control deployment issue

I am using SharePoint 2007 Enterprise with Windows Server 2008. I am using VSTS 2008 + C# + .Net 3.5. I am new to SharePoint user control development and deployment. I am learning from, http://www....

How do I embed a user control in a DLL?

How can I embed a user control in a DLL? Ideally, I would still be able to define the control s markup in an ascx file, but if I understand correctly you cannot embed template files into DLLs.

Substitute User Controls on Failure

Recently, I had a user control I was developing throw an exception. I know what caused the exception, but this issue got me thinking. If I have a user control throw an exception for whatever reason ...