Asp.net 弹出窗口可以';不显示

Asp.net 弹出窗口可以';不显示,asp.net,javascript-events,Asp.net,Javascript Events,我有这个弹出窗口 <dxpc:ASPxPopupControl runat="server" ClientInstanceName="pcMFileBrowser" id="pcMFileBrowser" Modal="false" HeaderText="Browse M Files" EnableClientSideAPI="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Clos

我有这个弹出窗口

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

函数ShowPopup(s,e){pcMFileBrowser.Show();}
但现在它总是在上面。。。
谢谢

更改javascript,以便返回false,而不返回post

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

函数ShowPopup()
{
pcMFileBrowser.Show();
返回false;
}
第二,改变你称之为:

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


谢谢,但那不行。。当我点击第一个时,弹出窗口不显示。第二种解决方案-按钮不可用。@user1278667我不会给你两种解决方案!两者都必须适用。