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