Link to home
Start Free TrialLog in
Avatar of Laura_Nash
Laura_NashFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Javascript error when updating gridview in published site

I have a web app developed using ASP .Net in VB (I'm relatively new to .Net).  I'm using Ajax updatepanels, Master pages and a datepicker control that I've compiled into a dll (based on an open source one but with a couple of mods, it's just a textbox, button and pop-up calendar).  I have a details view with three of the datepicker controls, a databound dropdownlist, two text boxes and a number of validator controls.  It has an update and cancel button.  This was all working correctly, until I had to change the datepicker control so that the textbox had auto-postback set to true, due to a problem elsewhere on the app when users directly input the date into the textbox rather than use the calendar.

I'm now having a javascript error when clicking on the update button on the detailsview.  The error is with javascript generated by .Net, I'm not adding much javascript to the page and nothing relating to the detailsview.  It doesn't occur if I run the app directly from Visual Studio (debug or view in browser), only if I publish the site to the server.  It's not occuring with any of my other gridviews and detailsviews, including those using the datepicker control (as well as required field validation and an updatepanel, this is the only page using a rangevalidator and customvalidator though).  

When I click on Update, I get an 'error on page' and the postback doesn't take place.  If I run the app in Firefox and trace the error in Firebug it points to the ValidatorGetValue(id) function in the WebResource.axd page, with an error of 'control has no properties'.  The value shown for the id parameter is ct100_Main_dvSick_dpSick, which is the id of the control when I view the source (of the span anyway).

I can't find any difference between the source of the page when in Visual Studio (when it works) and the source of the published page (that doesn't work), I've compared them in Textpad to check.  I've really run out of ideas of where to go next.
From ASPX:
 
<asp:Panel ID="pnlEdit" runat="server" Height="50px">
                <asp:DetailsView ID="dvSickEdit" runat="server"
                AutoGenerateRows="False" DataKeyNames="SicknessID" DataSourceID="SqlSicknessPeriod"
                DefaultMode="Edit" Height="50px" CssClass="Details" GridLines="None">
                    <Fields>
                     <asp:TemplateField HeaderText="Sickness Details:" HeaderStyle-CssClass="DetailsViewTitle">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtEmployee" runat="server" Text='<%# Bind("Employee") %>'></asp:TextBox>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="SicknessID" Visible="False" />
                          <asp:TemplateField HeaderText="Start of sickness">
                           <ItemTemplate>
                           <asp:Label ID="lblStart" Text='<%# Bind("FirstDay", "{0: dd/MM/yy}") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                           <cc1:DatePicker ID="dpStart" DateValue='<%# Bind("FirstDay") %>' runat="server" OnSelectionChanged="insertDatesChanged" />
                            <asp:RequiredFieldValidator ID="rfvStart" controlToValidate="dpStart" runat="server" ErrorMessage="Please enter the date of the start of the sickness" Display="None"></asp:RequiredFieldValidator>
                            <asp:RangeValidator ID="rgStart" runat="server" controlToValidate="dpStart" ErrorMessage="The start date cannot be in the future or more than a year in the past" Type="Date" Display="None"></asp:RangeValidator>
                            </EditItemTemplate>
                    </asp:TemplateField>
                       <asp:TemplateField HeaderText="First day of absence">
                         <ItemTemplate>
                           <asp:Label ID="lblFirstDay" Text='<%# Bind("FirstAbsence", "{0: dd/MM/yy}") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                            <cc1:DatePicker ID="dpFirstDay" runat="server" DateValue='<%# Bind("FirstAbsence") %>' OnSelectionChanged="insertDatesChanged"/>
                           <asp:RequiredFieldValidator ID="rfvFirstDay" controlToValidate="dpFirstDay" runat="server" ErrorMessage="Please enter the date of the first day of absence from work" Display="None"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="cpFirstDay" controlToValidate="dpFirstDay" ControlToCompare="dpStart" Operator="GreaterThanEqual" runat="server" ErrorMessage="The first day of absence cannot be before the first day of sickness" Display="None"></asp:CompareValidator>
                        </EditItemTemplate>
                    </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date sickness notified">
                           <ItemTemplate>
                           <asp:Label ID="lblNotified" Text='<%# Bind("NotifiedOn", "{0: dd/MM/yy}") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                            <cc1:DatePicker ID="dpNotified" runat="server" DateValue='<%# Bind("NotifiedOn") %>'/>
                             <asp:RequiredFieldValidator ID="rfvNotified" ControlToValidate="dpNotified" runat="server" ErrorMessage="Please enter the date the sickness was notified to the Employer" Display="None"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </asp:TemplateField>
                        <asp:TemplateField HeaderText="Notified to">
                          <ItemTemplate>
                            <asp:DropDownList ID="ddlVwNotifiedTo" runat="server" SelectedValue='<%# Bind("ReportedTo") %>' DataSourceID="sqlEmployees" DataTextField="Name" DataValueField="EmployeeID" Enabled="False">
                            </asp:DropDownList>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:DropDownList ID="ddlNotifiedTo" runat="server" SelectedValue='<%# Bind("ReportedTo") %>' DataSourceID="sqlEmployees" DataTextField="Name" DataValueField="EmployeeID">
                            </asp:DropDownList>
                        </EditItemTemplate>
                    </asp:TemplateField>
                        <asp:TemplateField HeaderText="End of sickness">
                            <ItemTemplate>
                           <asp:Label ID="lblEnd" Text='<%# Bind("DateReturned", "{0: dd/MM/yy}") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                            <cc1:DatePicker ID="dpEnd" runat="server" DateValue='<%# Bind("DateReturned") %>' OnSelectionChanged="updateWorkingDays"/>
                             <asp:RequiredFieldValidator ID="rfvEnd" ControlToValidate="dpEnd" runat="server" ErrorMessage="Please enter the date the sickness ended" Display="None"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="cpEnd" controlToValidate="dpEnd" ControlToCompare="dpStart" Operator="GreaterThanEqual" runat="server" ErrorMessage="The last day of sickness cannot be before the first day" Display="None"></asp:CompareValidator>                             
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Working days lost">
                          <ItemTemplate>
                           <asp:Label ID="lblDays" Text='<%# Bind("DaysLost") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDays" runat="server" Text='<%# Bind("DaysLost") %>' OnTextChanged="updateWorkingHrs" AutoPostBack="True"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvDays" ControlToValidate="txtDays" runat="server" ErrorMessage="Please enter the number of working days lost" Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revDays" ControlToValidate="txtDays" ValidationExpression="^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$" runat="server" ErrorMessage="Please enter a valid number of working days lost" Display="None"></asp:RegularExpressionValidator>  
                            <asp:CustomValidator ID="cvDays" runat="server" ControlToValidate="txtDays" OnServerValidate="checkDays" ErrorMessage="The number of working days entered is impossible" Display="None"></asp:CustomValidator>              
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Working hours lost">
                            <ItemTemplate>
                           <asp:Label ID="lblHrs" Text='<%# Bind("HrsLost") %>' runat="server" />
                           </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtHrs" runat="server" Text='<%# Bind("HrsLost") %>'></asp:TextBox>
                             <asp:RequiredFieldValidator ID="rfvHrs" ControlToValidate="txtHrs" runat="server" ErrorMessage="Please enter the number of working hours lost" Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revHrs" ControlToValidate="txtHrs" ValidationExpression="^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$" runat="server" ErrorMessage="Please enter a valid number of working hours lost" Display="None"></asp:RegularExpressionValidator>  
                            <asp:CustomValidator ID="cvHrs" runat="server" ControlToValidate="txtHrs" OnServerValidate="checkHours" ErrorMessage="The number of working hours entered is impossible" Display="None"></asp:CustomValidator>              
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                    <ItemTemplate>
                      <asp:ValidationSummary ID="dsEdit" runat="server" />
                      </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                    <asp:LinkButton runat="server" Text="Edit" CommandName="Edit" CssClass="Button" ID="btnEdit"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                     <asp:LinkButton runat="server" Text="Update" CommandName="Update" CssClass="Button" ID="btnUpdate"></asp:LinkButton>
                     <asp:LinkButton runat="server" Text="Cancel" CommandName="Cancel" CssClass="Button" ID="btnCancel" CausesValidation="False"></asp:LinkButton>
                    </EditItemTemplate>
                    </asp:TemplateField>
                    </Fields>
                </asp:DetailsView>
                <asp:LinkButton ID="addRTW" runat="server" CausesValidation="False" OnClick="addRTW_Click" CssClass="Button">Add RTW Interview Details</asp:LinkButton>
                <asp:LinkButton ID="vwRTW" runat="server" CausesValidation="False" OnClick="vwRTW_Click" CssClass="Button">View RTW Interview Details</asp:LinkButton></asp:Panel>
            &nbsp; &nbsp;&nbsp;&nbsp;
        </ContentTemplate>
    </asp:UpdatePanel>
 
--------------------------------------------------------------
 
Function in WebResource.axd highlighted by Firebug as throwing the error:
 
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}
 
--------------------------------------------------------------
 
Source of the details view when running the app:
 
<div id="ctl00_Main_pnlInsert" style="height:50px;">
				
            <div>
					<table class="Details" cellspacing="0" border="0" id="ctl00_Main_dvSick" style="height:50px;border-collapse:collapse;">
						<tr>
							<td class="DetailsViewTitle">Add Sickness Details:</td><td>
                            
                        </td>
						</tr><tr>
 
							<td>Start of sickness</td><td>
                           <span id="ctl00_Main_dvSick_dpStart"><input name="ctl00$Main$dvSick$dpStart$txtDate" type="text" value="24/06/2008" onchange="javascript:setTimeout('__doPostBack(\'ctl00$Main$dvSick$dpStart$txtDate\',\'\')', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" id="ctl00_Main_dvSick_dpStart_txtDate" /><input type="button" name="ctl00$Main$dvSick$dpStart$ctl02" value="+" onclick="javascript:__doPostBack('ctl00$Main$dvSick$dpStart$ctl02','')" /><div style="position:absolute;filter:alpha(opacity=95);-moz-opacity:.95;opacity:.95;z-index:2;background-color:White;display:inline;">
 
							</div></span>
                            <span id="ctl00_Main_dvSick_rfvStart" style="color:Red;display:none;"></span>
                            <span id="ctl00_Main_dvSick_rgStart" style="color:Red;display:none;"></span>
                            </td>
						</tr><tr>
							<td>First day of absence</td><td>
 
                            <span id="ctl00_Main_dvSick_dpFirstDay"><input name="ctl00$Main$dvSick$dpFirstDay$txtDate" type="text" value="24/06/2008" onchange="javascript:setTimeout('__doPostBack(\'ctl00$Main$dvSick$dpFirstDay$txtDate\',\'\')', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" id="ctl00_Main_dvSick_dpFirstDay_txtDate" /><input type="button" name="ctl00$Main$dvSick$dpFirstDay$ctl02" value="+" onclick="javascript:__doPostBack('ctl00$Main$dvSick$dpFirstDay$ctl02','')" /><div style="position:absolute;filter:alpha(opacity=95);-moz-opacity:.95;opacity:.95;z-index:2;background-color:White;display:inline;">
 
							</div></span>
                           <span id="ctl00_Main_dvSick_rfvFirstDay" style="color:Red;display:none;"></span>
                            <span id="ctl00_Main_dvSick_cpFirstDay" style="color:Red;display:none;"></span>
                        </td>
						</tr><tr>
							<td>Date sickness notified</td><td>
                            <span id="ctl00_Main_dvSick_dpNotified"><input name="ctl00$Main$dvSick$dpNotified$txtDate" type="text" value="24/06/2008" onchange="javascript:setTimeout('__doPostBack(\'ctl00$Main$dvSick$dpNotified$txtDate\',\'\')', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" id="ctl00_Main_dvSick_dpNotified_txtDate" /><input type="button" name="ctl00$Main$dvSick$dpNotified$ctl02" value="+" onclick="javascript:__doPostBack('ctl00$Main$dvSick$dpNotified$ctl02','')" /><div style="position:absolute;filter:alpha(opacity=95);-moz-opacity:.95;opacity:.95;z-index:2;background-color:White;display:inline;">
 
							</div></span>
                             <span id="ctl00_Main_dvSick_rfvNotified" style="color:Red;display:none;"></span>
                        </td>
						</tr><tr>
							<td>Notified to</td><td>
                            <select name="ctl00$Main$dvSick$ddlNotifiedTo" id="ctl00_Main_dvSick_ddlNotifiedTo">
								<option value="4">Buffy Summers</option>
 
								<option value="12">Claire Pinguenet</option>
								<option value="13">Claire Pinguenet</option>
								<option value="9">Cordelia Chase</option>
								<option value="11">Daniel Osbourne</option>
								<option value="6">Dawn Summers</option>
								<option value="7">Faith Lehane</option>
 
								<option value="14">Jim qwerty</option>
								<option value="8">Joyce Summers</option>
								<option value="5">Rupert Giles</option>
								<option value="3">Willow Rosenburg</option>
								<option value="1">Xander Harris</option>
 
							</select>
 
                        </td>
						</tr><tr>
							<td colspan="2">
                      <div id="ctl00_Main_dvSick_vsInsert" style="color:Red;display:none;">
 
							</div>
                      </td>
						</tr><tr>
							<td colspan="2"><a class="Button" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$Main$dvSick$ctl01&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Add</a>&nbsp;<a class="Button" href="javascript:__doPostBack('ctl00$Main$dvSick','Cancel$-1')">Reset</a></td>
 
						</tr>
					</table>
				</div>
            
			</div>
            
            &nbsp; &nbsp;&nbsp;&nbsp;
        
		</div>
 
--------------------------------------------------------------
All the script tags in the source prior to clicking on the update button:
 
<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
<script src="/Sickness/WebResource.axd?d=effNFYtvgRoXrl9xY8kCxg2&amp;t=633196825633593750" type="text/javascript"></script>
 
<script type='text/javascript'>function searchPanelEnabled(bool) { sp = document.getElementById('ctl00_SearchControl_searchMain');if (bool) {sp.className = 'SearchPanelEnabled'}else {sp.className = 'SearchPanel'}} </script>
<script src="/Sickness/WebResource.axd?d=07S6pqwWCZNn88B08tMU6A2&amp;t=633196825633593750" type="text/javascript"></script>
<script src="/Sickness/WebResource.axd?d=fz-Fls4V6UBkxeXR7E8vfZOWpxOQwTuSrcCjzyqCwiA1&amp;t=633196825633593750" type="text/javascript"></script>
<script src="/Sickness/ScriptResource.axd?d=a4F2nuCGnY2alxU4yGF0TDT9QjBUAWR7NkiLUsJjVwIIu8qMeQGR_gD6PXLtmZhILVWXETmRkZBjlWyWn3ucCVWkgyFmuppiMByQ835GYCo1&amp;t=633286634959062500" type="text/javascript"></script>
<script src="/Sickness/ScriptResource.axd?d=a4F2nuCGnY2alxU4yGF0TDT9QjBUAWR7NkiLUsJjVwIIu8qMeQGR_gD6PXLtmZhILVWXETmRkZBjlWyWn3ucCYF7YgmL_pheeB8k_cTJ_4KY4OKVAMqQzye_Hluwmyx40&amp;t=633286634959062500" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
// -->
</script>
 
    <table id="ctl00_MainLayout" border="0">
	<tr id="ctl00_HeaderRow">
		<td id="ctl00_HeaderCell" class="Header" colspan="2">
           <table><tr><td rowspan="2" valign="top">
            <img src="images/Thermometer.jpeg" alt="Thermometer Illustration" width="200" />
            </td><td valign="top">
            <span class="MainTitle">
                <img src="images/IHSNEW15finalbanner.jpg" alt="SHIS Logo Banner" width="700" />
                <br />
                Sickness Monitoring System</span><br />
            <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$upEmp','tctl00$SearchControl$upSearch','tctl00$Main$upSicknessRecord'], [], [], 90);
		//]]>
</script>
 
<script type="text/javascript">
<!--
var Page_ValidationSummaries =  new Array(document.getElementById("ctl00_Main_dvSick_vsInsert"));
var Page_Validators =  new Array(document.getElementById("ctl00_Main_dvSick_rfvStart"), document.getElementById("ctl00_Main_dvSick_rgStart"), document.getElementById("ctl00_Main_dvSick_rfvFirstDay"), document.getElementById("ctl00_Main_dvSick_cpFirstDay"), document.getElementById("ctl00_Main_dvSick_rfvNotified"));
// -->
</script>
 
<script type="text/javascript">
<!--
var ctl00_Main_dvSick_rfvStart = document.all ? document.all["ctl00_Main_dvSick_rfvStart"] : document.getElementById("ctl00_Main_dvSick_rfvStart");
ctl00_Main_dvSick_rfvStart.controltovalidate = "ctl00_Main_dvSick_dpStart";
ctl00_Main_dvSick_rfvStart.errormessage = "Please enter the date of the start of the sickness";
ctl00_Main_dvSick_rfvStart.display = "None";
ctl00_Main_dvSick_rfvStart.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ctl00_Main_dvSick_rfvStart.initialvalue = "";
var ctl00_Main_dvSick_rgStart = document.all ? document.all["ctl00_Main_dvSick_rgStart"] : document.getElementById("ctl00_Main_dvSick_rgStart");
ctl00_Main_dvSick_rgStart.controltovalidate = "ctl00_Main_dvSick_dpStart";
ctl00_Main_dvSick_rgStart.errormessage = "The start date cannot be in the future or more than a year in the past";
ctl00_Main_dvSick_rgStart.display = "None";
ctl00_Main_dvSick_rgStart.type = "Date";
ctl00_Main_dvSick_rgStart.dateorder = "dmy";
ctl00_Main_dvSick_rgStart.cutoffyear = "2029";
ctl00_Main_dvSick_rgStart.century = "2000";
ctl00_Main_dvSick_rgStart.evaluationfunction = "RangeValidatorEvaluateIsValid";
ctl00_Main_dvSick_rgStart.maximumvalue = "24/06/2008";
ctl00_Main_dvSick_rgStart.minimumvalue = "24/06/2007";
var ctl00_Main_dvSick_rfvFirstDay = document.all ? document.all["ctl00_Main_dvSick_rfvFirstDay"] : document.getElementById("ctl00_Main_dvSick_rfvFirstDay");
ctl00_Main_dvSick_rfvFirstDay.controltovalidate = "ctl00_Main_dvSick_dpFirstDay";
ctl00_Main_dvSick_rfvFirstDay.errormessage = "Please enter the date of the first day of absence from work";
ctl00_Main_dvSick_rfvFirstDay.display = "None";
ctl00_Main_dvSick_rfvFirstDay.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ctl00_Main_dvSick_rfvFirstDay.initialvalue = "";
var ctl00_Main_dvSick_cpFirstDay = document.all ? document.all["ctl00_Main_dvSick_cpFirstDay"] : document.getElementById("ctl00_Main_dvSick_cpFirstDay");
ctl00_Main_dvSick_cpFirstDay.controltovalidate = "ctl00_Main_dvSick_dpFirstDay";
ctl00_Main_dvSick_cpFirstDay.errormessage = "The first day of absence cannot be before the first day of sickness";
ctl00_Main_dvSick_cpFirstDay.display = "None";
ctl00_Main_dvSick_cpFirstDay.evaluationfunction = "CompareValidatorEvaluateIsValid";
ctl00_Main_dvSick_cpFirstDay.controltocompare = "ctl00_Main_dvSick_dpStart";
ctl00_Main_dvSick_cpFirstDay.controlhookup = "ctl00_Main_dvSick_dpStart";
ctl00_Main_dvSick_cpFirstDay.operator = "GreaterThanEqual";
var ctl00_Main_dvSick_rfvNotified = document.all ? document.all["ctl00_Main_dvSick_rfvNotified"] : document.getElementById("ctl00_Main_dvSick_rfvNotified");
ctl00_Main_dvSick_rfvNotified.controltovalidate = "ctl00_Main_dvSick_dpNotified";
ctl00_Main_dvSick_rfvNotified.errormessage = "Please enter the date the sickness was notified to the Employer";
ctl00_Main_dvSick_rfvNotified.display = "None";
ctl00_Main_dvSick_rfvNotified.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ctl00_Main_dvSick_rfvNotified.initialvalue = "";
// -->
</script>
 
<script type="text/javascript">
<!--
var ctl00_Menu_Data = new Object();
ctl00_Menu_Data.disappearAfter = 500;
ctl00_Menu_Data.horizontalOffset = 0;
ctl00_Menu_Data.verticalOffset = 0;
ctl00_Menu_Data.staticHoverClass = 'ctl00_Menu_4 MenuHoverStyle';
ctl00_Menu_Data.staticHoverHyperLinkClass = 'ctl00_Menu_3 MenuHoverStyle';
// -->
</script>
 
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</script>
        
<script type="text/javascript">
<!--
Sys.Application.initialize();
// -->
</script>

Open in new window

Avatar of Laura_Nash
Laura_Nash
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

If I change the updatepanel to a simple panel then the published site works fine (except that it's a horrible user experience with flickering and jumping about on the screen!).  So it definately relates to using Ajax.

If I remove all the validation controls then it works as well.  Is there something I need to do to make validation controls work correctly within UpdatePanels for published sites?
ASKER CERTIFIED SOLUTION
Avatar of Laura_Nash
Laura_Nash
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial