Problem in ASP.NET AJAX ModalPopupExtender
-
Hi i m using AJAX ModalPopupExtender and below is the code for this. i want that when i click on the Ok Button of ModalPopupExtender it should call the Click EVENT which is written in my asp.net source file but it does not do my defined fucntionality. what I have to do for this purpose? <asp:UpdatePanel ID="UpdatePanel4" runat="server"> <ContentTemplate> <asp:LinkButton ID="LinkButton2" runat="server">Details ...</asp:LinkButton> <cc1:ModalPopupExtender ID="MPE" runat="server" BackgroundCssClass="modalBackground" CancelControlID="CancelButton" DropShadow="false" OkControlID="OkButton" OnOkScript="onOk()" PopupControlID="Panel2" PopupDragHandleControlID="Panel2" TargetControlID="LinkButton2" X="100" Y="100"> </cc1:ModalPopupExtender> <asp:Panel ID="Panel2" runat="server" Height="83px" Width="464px"> <asp:TextBox ID="TextBox3" runat="server" BackColor="SteelBlue" BorderColor="MediumBlue" BorderStyle="Solid" ForeColor="ActiveCaptionText" Height="150px" TextMode="MultiLine" ValidationGroup="Ok" Width="452px"></asp:TextBox><br /> <asp:Button ID="OkButton" runat="server" Text="Ok" Width="76px" OnClick="OkButton_Click"/> <asp:Button ID="CancelButton" runat="server" Text="Cancel" /> </asp:Panel> </ContentTemplate> </asp:UpdatePanel> Regards