How do I open a Modal Popup extender from another page?
I'm using a User Control to create this popup:
UserControl ucModalInativar.ascx
:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucModalInativar.ascx.cs" Inherits="Project.UserControls.ucModalInativar" %>
<ajaxToolkit:ModalPopupExtender ID="MPE" runat="server" TargetControlID="">
</ajaxToolkit:ModalPopupExtender>
Aspx Consultar.aspx
:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Consultar.aspx.cs" Inherits="Project.ControleAcesso.LogAcesso.Consultar" Culture="auto" meta:resourcekey="Page" UICulture="auto" %>
....
<asp:Button ID="btnAbrir" ClientIDMode="Static" CssClass="btn azul margT20" runat="server" Text="Abrir Modal" />
....
Master Page Site.Master
:
...
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<uc1:ucModalInativar runat="server" ID="ucModalInativar2" />
</ContentTemplate>
</asp:UpdatePanel>
...
I know that "TargetControlID"
has to be filled with some component of the page, but since it is user control, it is being implemented in Site.Master, and this button is from another page.
How do I do this by clicking on the Open button, modal extender opens?