开发者

Why not message show

开发者 https://www.devze.com 2023-01-12 04:24 出处:网络
My Project have master page .On my content page i write the bellow syntax <dx:ASPxPopupControl ID=\"ASPxPopupControlUserRole\" runat=\"server\" CloseAction=\"CloseButton\"

My Project have master page .On my content page i write the bellow syntax

<dx:ASPxPopupControl ID="ASPxPopupControlUserRole" runat="server" CloseAction="CloseButton" 
    EnableClientSideAPI="True" HeaderText="Confirmation" Modal="True"  
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
    ShowCloseButton="True" AllowDragging="True" EnableViewState="False">

    <ContentCollection>
<dx:PopupControlContentControl runat="server"></dx:PopupControlContentControl>
</ContentCollection>

</dx:ASPxPopupControl>


  private void ShowMessage(String Message)
        {
            if (Message != "")
            {
                PopupWindow Winddow = new PopupWindow(Message);
                Winddow.ShowOnPageLoad = true;
                ASPxPopupControlUserRole.Windows.Add(Winddow);
            }
        }

Under the button event event i call t开发者_开发问答he ShowMessage method.But i can not see the message.Why not message show?


Your code works fine here. I added your code to the content page and the Confirmation window appears when a button is clicked. So, the problem is somewhere else... I am afraid, it is impossible to help you having only this code.

0

精彩评论

暂无评论...
验证码 换一张
取 消