title: Master page popup login control using ajaxcontroltoolkit don't work
body: <p>I made a pop control on the master page in asp.net 3.5
  please see the following code:</p>
  
  <p><strong>Main.master aspx code:</strong></p>
  
  <pre><code> &lt;form id="form1" runat="server"&gt;
  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;asp:Panel ID="Panel1" runat="server"
  style="display:none; background-color:White; width:700;
  border-width:2px; border-color:Black; border-style:solid;
  padding:20px;"&gt;
   &lt;table width="100%" border="0" cellpadding="2" cellspacing="5"&gt;
                  &lt;tr&gt;
  
                      &lt;td&gt;&lt;asp:Label id="labMsg" runat="server" ForeColor="Red"EnableViewState="false" /&gt;                       
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;strong&gt;Login ID :&lt;/strong&gt;                    
                         &lt;asp:TextBox ID="txtLogin" runat="server"&gt;&lt;/asp:TextBox&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;strong&gt;Password :&lt;/strong&gt;
                     &lt;asp:TextBox ID="txtPassword" runat="server" TextMode="Password"&gt;&lt;/asp:TextBox&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;                  
                      &lt;td&gt;
                          &lt;asp:Button ID="btnOk" runat="server" Text="Sign In" onclick="Login" /&gt;
                          &lt;asp:Button ID="btnClose" runat="server" Text="Cancel" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/asp:Panel&gt;
  
  
          &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
              &lt;ContentTemplate&gt;
              &lt;asp:Panel ID="defaultPanel" CssClass="Default_Panel" runat="server" Visible="true"&gt;
              &lt;ul&gt;&lt;li&gt;&lt;asp:LinkButton ID="lnkSignIn" class="last" runat="server" Visible="true" Text="sign in"&gt;&lt;/asp:LinkButton&gt;
                            &lt;asp:LinkButton ID="lnkSignOut" class="last" runat="server" Visible="false" Text="sign out"&gt;&lt;/asp:LinkButton&gt;
                        &lt;/li&gt;                       
          &lt;/ul&gt;
  
                 &lt;!-- Login Pop Ajax Control Tool Kit --&gt;
                  &lt;ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1"
                  runat="server" TargetControlID="lnkSignIn"
                  DisplayModalPopupID="ModalPopupExtender1"&gt;
                  &lt;/ajaxToolkit:ConfirmButtonExtender&gt;
                  &lt;ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                  CancelControlID="btnClose" OkControlID="btnOk"
                  PopupControlID="Panel1"
                  TargetControlID="lnkSignIn"&gt;
                  &lt;/ajaxToolkit:ModalPopupExtender&gt;
                 &lt;/asp:Panel&gt;       
              &lt;/ContentTemplate&gt;
  
               &lt;/asp:UpdatePanel&gt; 
      &lt;/form&gt;
  </code></pre>
  
  <p><strong>Main.master.cs code:</strong></p>
  
  <pre><code> public void Login(object sender, EventArgs e)
    {
  
  
       // return "Login Successfull";
        labMsg.Text = "Login Successfull";
    }
  </code></pre>
  
  <p><strong>Problem:</strong> 
  When login button is pressed[from Default.aspx or from any other child page] it don't hit the Login method on the master page. Help is appreciated.</p>