2012-05-25 78 views

回答

1

使用Popup Control - Content URL顯示控件中的另一個webform。在按鈕的客戶端單擊事件上打開彈出窗口。

例如:

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

入住這search Result
參考:
How to manipulate client-side objects within a ASPxPopupControl with the specified ContentUrl - 檢查例子也。

希望對您有所幫助...

0

下面是示例代碼:

<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

相關問題