How to replace the alert message box with RadWindow

情到浓时终转凉″ 提交于 2020-01-04 02:48:09

问题


My Code:

<telerik:RadWindow ID="UpdateFavoriteRadWindow" Width="300" Height="150" VisibleOnPageLoad="false" CssClass="radwindow" runat="server">
    <ContentTemplate>
        <div align="center" class="addFavoriteborder">
            <br /><br />
            <div>
                <asp:Label ID="lblUpdateFavorite" runat="server" Text="Changes Updated"></asp:Label>
            </div>
            <br />
        </div>
    </ContentTemplate>
</telerik:RadWindow>

protected void btnUpdateReport_Click(object sender, ImageClickEventArgs e)
{
    // code to update
    Response.Write("<script>alert('Changes Updated')</script>"); // how to replace this message box with RadWindow
}

I want to show the RadWindow instead of alert message box. Thanks


回答1:


EDIT

RAD Alert box

protected void Button1_Click(object sender, EventArgs e)
  {
      RadWindowManager windowManager = 
               FindControl(this, "WindowManager") as RadWindowManager;
   windowManager.RadAlert("MessageText", 400, null, "title", null);                   
  }

More detail : Open RadWindow on Button Click Event

For more details you check this discussion on RAD site : http://www.telerik.com/community/forums/aspnet-ajax/window/problem-with-radwindows-confirm-and-alert.aspx



来源:https://stackoverflow.com/questions/12909701/how-to-replace-the-alert-message-box-with-radwindow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!