Когда я отображаю сообщение из ajaxToolkit:ModalPopupExtender, ajaxToolkit:ModalPopupExtender закрывается после закрытия сообщения.
Как я могу отображать ajaxToolkit:ModalPopupExtender и по-прежнему отображать сообщения без закрытия ajaxToolkit:ModalPopupExtender при закрытии сообщения?
Разметка:-
Tests
We are restricted to the Browser Height/Width
This panel acts as an inner browser window.
Код:-
using AjaxControlToolkit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
#region Modal Popup Example Panel Like Browser.
protected void btnMPE_Example_Panel_Like_Browser_Close_Click(object sender, EventArgs e)
{
// DONT SET THE CANCELCONTROLID on the ModalPopupExtender
// Set the CausesValidation = false on btnModal_Popup_No
// for this event to be fired
MPE_Example_Panel_Like_Browser.Hide();
lbModal_Response_Display.Text = "Modal Popup Example Panel Like Browser - Close";
}
#endregion Modal Popup Example Panel Like Browser.
protected void btnMPE_Example_Panel_Like_Browser_Message_Click(object sender, EventArgs e)
{
Response.Write("alert('Message')");
}
}
}