2012-04-18 61 views
0

我有這個彈出彈出無法顯示

<dxpc:ASPxPopupControl runat="server" ClientInstanceName="pcMFileBrowser" id="pcMFileBrowser" Modal="false" 
HeaderText="Browse M Files" EnableClientSideAPI="True" PopupHorizontalAlign="WindowCenter" 
PopupVerticalAlign="WindowCenter" CloseAction="None" ShowCloseButton="False" EnableAnimation="False"> 
<ContentCollection> 
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server"> 
    <table> 
     <tr> 
      <td> 
       TEXT! 
      </td> 
     </tr> 
    </table> 
</dxpc:PopupControlContentControl> 
</ContentCollection> 

,這個按鈕:

<dxe:ASPxButton id="_ShowM" runat="server" Text="Browse M" Visible="false" skinid="WideButton" autopostback="False" ClientSideEvents-Click="function(s, e){pcMFileBrowser.Show();}" causesvalidation="False" enableclientsideapi="True" wrap="False"></dxe:ASPxButton> 

但是當我按一下按鈕它不顯示... 我試着與

<dxe:ASPxButton id="_ShowM" runat="server" Text="Browse M" Visible="false" skinid="WideButton" autopostback="False" ClientSideEvents-Click="ShowPopup" causesvalidation="False" enableclientsideapi="True" wrap="False"></dxe:ASPxButton> 
<script ......> function ShowPopup(s, e){pcMFileBrowser.Show();}</script> 

但現在它始終位於頂端... 謝謝!

回答

0

更改JavaScript,因此返回false並且不回發。

<script> 
     function ShowPopup() 
     { 
     pcMFileBrowser.Show(); 
     return false; 
     } 
</script> 

第二個變化你怎麼稱呼它爲途徑:

<dxe:ASPxButton id="_ShowM" ... ClientSideEvents-Click="return ShowPopup();" ...> 
+0

謝謝,但是當我點擊,這不是工作..隨着第一 - 彈出窗口不顯示。 第二種解決方案 - 該按鈕不可用。 – 2012-04-18 09:05:21

+0

@ user1278667我不給你兩個解決方案!兩者都必須應用。 – Aristos 2012-04-18 09:07:11