Hi, Russ,
I just dived in ASP.NET AJAX and run into this problem. Please help.
I am using Wizard Control + Validation control + AJAX on my page. I ran into javascript error which prevent the navigation to go forward. After hourse of experimenting, I found that the problem is due to using the Validation control with ASP.NET AJAX (I will show an example later). If I romve the AJAX, everything works fine; if I remove the validation control and put the AJAX back, everything works. fine.
Sure, I can try to do the validaiton myself rather than using the validation control. But htis is a done project, I am just reying to make it AJAX-enabled and make ths user's expereince better. I am looking for a different workaround rather than remove the validation control.
Here is the code: as it is, move from step 1 to 2, no problem; move to step 2 to 3, cannot move. status bar shows javascript error. Remove the validation control in step 1, everything works.
Thanks for your hel in advance.
<form id="form1" runat="server">
<div>
<atlas:ScriptManager ID="sm" EnablePartialRendering="true" runat="server" />
<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Wizard ID="TierXQueryWizard" runat="server" ActiveStepIndex="0" DisplaySideBar="false"> <WizardSteps>
<asp:WizardStep ID="AddEdit" runat="server" StepType="Start" Title="Add/Edit Query">
<div class="PageInstruction" align="center">
To Create a new query, select "- New -" from the drop-down list, enter a query name and description.
To Edit an existing query, select the query name from the drop-down list.
</div>
<table border="0" width="70%">
<tr>
<td nowrap>
<strong>User E-mail:</strong>
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvEmail" runat="server" SetFocusOnError="True" ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Enter your email address."/>
</td>
</tr> <tr valign="top">
<td>
<strong>Query Name:</strong>
</td>
<td nowrap> <asp:DropDownList ID="ddlQueryName" runat="server" DataTextField="QUERY_NAME" DataValueField="QUERY_NAME" AutoPostBack="True"/>
<br />
<asp:TextBox ID="txtQueryName" runat="server" MaxLength="40"></asp:TextBox>
</td>
</tr> <tr valign="top">
<td><strong>Description:</strong></td>
<td>
<asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Columns="30" Rows="5" />
</td>
</tr> </table> </asp:WizardStep>
<asp:WizardStep ID="DeliveryMethod" runat="server" StepType="Step" Title="Delivery Method">
<div class="PageInstruction" align="center">
Please select a delivery method. If have selected Scheduled, you are required to select a run frequency.
</div>
</asp:WizardStep>
<asp:WizardStep ID="DataType" runat="server" StepType="Step" Title="Data Type(s)">
<div class="PageInstruction" align="center">
To select/unselect the data types, click the checkbox next to the data type. Please select at least one data type.
</div>
</asp:WizardStep>
<asp:WizardStep ID="QueryFilter" runat="server" StepType="Step" Title="Query Filter(s)">
<div class="PageInstruction" align="center">
To add a filter, select the filter value from the drop-down list or enter the value into the text box, then click Add button.
To remove a filter from the listbox, select the filter value by clicking on it and then click the Remove button.
Product Line filter is not available for On Demand due to the hugh amount of data.
</div> </asp:WizardStep>
<asp:WizardStep ID="Summary" runat="server" Title="Summary">
<div class="PageInstruction" align="center">
Please review your query summay. If you need to make any changes, please use the Previous button to go back.
</div> </asp:WizardStep> <asp:WizardStep ID="Complete" runat="server" StepType="Complete" Title="Complete">
<div align="center">
<asp:Label ID="lblInfo" runat="server" CssClass="Message"/> <br /><br />
Click <b>My Query Template</b> at the top to view/edit your exisitng query templates.<br />
Click <b>My Jobs</b> at the top to view your exisitng jobs.<br />
Click <b>My Files</b> at the top to view your exisitng download files.<br />
Click <b>Template Builder</b> at the top to create/edit query template. </div>
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
<asp:Literal ID="lJavaScript" runat="server" /> </ContentTemplate></atlas:UpdatePanel>
</div>
</form>