2012-04-18 3 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

자바 스크립트를 변경하면 false가 반환되고 다시 게시되지 않습니다.

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

두 번째 변화는로 호출 방법 :

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

감사합니다,하지만 난 클릭하면 그 첫번째로 .. 작동하지 않을 것 - 팝업이 표시되지 않습니다. 두 번째 솔루션 - 버튼을 사용할 수 없습니다. –

+0

@ user1278667 두 가지 해결책을 제공하지 않습니다. 둘 다 적용되어야합니다. – Aristos