Question : Modal Popup Validation Summary

Dear Experts,

I have a modal popup. When I place Validation Summary on it, I get an error:
function () {Array.remove(Page_ValidationSummaries, document.getElementById("ctl00_ContentPlaceHolder1_tcTPS_ProductionTabPanel_ctl01_tcProduction_NarratorsTabPanel_EditNarratorValidationSummary"));}(function () {var fn = function () {AjaxControlToolkit.ModalPopupBehavior.invokeViaServer("ctl00_ContentPlaceHolder1_tcTPS_ProductionTabPanel_ctl01_tcProduction_NarratorsTabPanel_EditNarratorModalPopupExtender", true);Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);}) is not a function

If I remove the Summary, the problem disappears.
Is it possible to have Validation Summary in modal popup?
Thanks.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
<asp:Panel ID="pnlEditNarrator" runat="server" CssClass="modalPopup" 
                    Style="display:none" Width="640px" Height="450px" >
                    <asp:UpdatePanel ID="upnlEditNarrator" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>           
                        <div align="center" style="vertical-align:middle;">
                            <br />
                            <asp:SqlDataSource ID="NarratorDetailSqlDataSource" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BookList %>" 
                                ProviderName="<%$ ConnectionStrings:BookList.ProviderName %>" />
                            <asp:ValidationSummary ID="EditNarratorValidationSummary" runat="server" ValidationGroup="EditNarratorValidation" 
                                BorderStyle="Solid" HeaderText="The following error(s) occured:" />      

                            <asp:DetailsView ID="NarratorDetail" runat="server" AutoGenerateRows="False" 
...

Answer : Modal Popup Validation Summary

This is a well known bug in older versions of AjaxToolKit. It was a bug because of one missing ; when using validation summary with Modal popup extender

you must be using older version of ajaxtoolkit.

Download New version of AjaxControlToolkit from http://ajaxcontroltoolkit.codeplex.com/releases/view/43475.

This will fix your issue.

Cheers.
Amarjit
Random Solutions  
 
programming4us programming4us