Button on AJAXModalPopup not firing the event
-
In my aspx page,I have a modal popup,on which there is a textbox and a button. On click of the button(button_click()) ,I have written the code to save the textbox content to database.Everything seems like a simple scenario. But somehow,when I click the button on the modal popup, it is not firing any event. I have done the same thing on some other pages also and there it is working properly. This is my design code :
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="addComment_lnk"
BackgroundCssClass="modalBackground" PopupControlID="Panel1">
</ajaxToolkit:ModalPopupExtender>
<asp:LinkButton ID="btn_hide" runat="server"></asp:LinkButton>
<asp:Panel ID="Panel1" CssClass="popBox" runat="server" Style="display: none">
<div>
<p style="text-align: center">
<table>
<tr>
<td class="title">
Post Comment :
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="comments_txt" CssClass="popInput" TextMode="MultiLine" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Button ID="post_btn" CssClass="button buttonGreen floatRight" OnClick="post_btn_Click"
runat="server" Text="Post" />
<asp:Button ID="cancel_btn" CssClass="button buttonGray floatRight" runat="server"
Text="Cancel" />
</td>
</tr>
</table>
</p>
</div>
</asp:Panel>
<asp:LinkButton ID="addComment_lnk" runat="server">Add Comment</asp:LinkButton>Can anyone please suggest any possible reasons for the button not firing event. Thank You.