我的代码:
<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
}我想显示RadWindow而不是警告消息框。谢谢
发布于 2012-10-16 15:42:38
编辑
RAD Alert框
protected void Button1_Click(object sender, EventArgs e)
{
RadWindowManager windowManager =
FindControl(this, "WindowManager") as RadWindowManager;
windowManager.RadAlert("MessageText", 400, null, "title", null);
}更多细节:Open RadWindow on Button Click Event
有关更多详细信息,请查看RAD站点上的此讨论:http://www.telerik.com/community/forums/aspnet-ajax/window/problem-with-radwindows-confirm-and-alert.aspx
https://stackoverflow.com/questions/12909701
复制相似问题