Hi. I'm making lost password recovery on my login page and I'm doing it with ModalPopUpExtender, a Panel and two of those inside of an UpdatePanel. But somehow when clicking the "btnOkPassRequest" full postback happens. People had similiar problems with other controls, some that UpdatePanel obviously didn't encapsulate. But never with a Button. What am I missing?
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"TargetControlID="HyperLink2" BackgroundCssClass="ModalPopupBG" PopupControlID="pnlPopupPass" CancelControlID="btnCancelPassRequest" OkControlID="Button1"></cc1:ModalPopupExtender>
<asp:Panel ID="pnlPopupPass" runat="server" CssClass="ModalPopup">
<div class="ModalHeader">Password recovery</div>
<div class="ModalBody">
<p>Please, enter username.....</p>
<table>
<tr>
<td>Username</td>
<td><asp:TextBox ID="tbModalUserName" runat="server" class="textbox"></asp:TextBox></td>
</tr>
</table>
<table>
<tr>
<td></td>
<td><asp:Button ID="btnOKPassRequest" runat="server" Text="Request new password" CssClass="button-wide" onclick="btnOKPassRequest_Click" PostBackUrl="~/Login.aspx" /></td>
<td><asp:Button ID="btnCancelPassRequest" runat="server" Text="Cancel" CssClass="button-wide"/></td>
</tr>
</table>
</div>
<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnOKPassRequest" EventName="btnOKPassRequest_Click" />
</Triggers>