.Net 2.0 Wizard Control/Required Validator javascript error

G

Guest

Hi,

Having probs with using the Wizard control and RequiredValidators with .Net
2.0. Its giving me an 'event' is null javascript error when clicking on
another wizard step insteading of giving me an validator error message. Code
follows, any suggestions?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs"
Inherits="Sia.Web.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>test Page</title>
</head>
<body>
<form id="form1" runat="server">
<div id="divBackground" class="WizardContentBackgroundDiv">
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" Width="100%"
Height="300px">
<WizardSteps>
<asp:WizardStep ID="wsMyDetails" runat="server" Title="My
Details">
<asp:panel id="pnlContent" runat="server" Width="100%">
<H1>Welcome to the Wizard</H1>
<P>If you've been here before and have a profile enter your username
and password
below.</P>
<P>If you don't have a profile, please <A tabIndex="6"
href="NewUser.aspx">click
here</A>.</P>
<TABLE cellSpacing="0" cellPadding="0" align="center" border="0">
<TR>
<TD>
<TABLE cellSpacing="5" cellPadding="5">
<TR>
<TD>Username:</TD>
<TD vAlign="top">
<asp:TextBox ID="txtUsername"
runat="server" TabIndex="1"></asp:TextBox>
<asp:RequiredFieldValidator
ID="valLogin" runat="server" ControlToValidate="txtUsername"
ErrorMessage="Please enter your
username" ValidationGroup="grpLogin" EnableClientScript="True"
Display="Dynamic"></asp:RequiredFieldValidator>
<asp:ValidationSummary
ID="ValidationSummaryLogin" runat="server" ValidationGroup="grpLogin" />
</TD>
</TR>
<TR>
<TD>Password:</TD>
<TD vAlign="top"></TD>
</TR>
<TR>
<TD> </TD>
<TD>
<asp:Button id="btnLogin" tabIndex="3" Runat="server"
Text="Login"></asp:Button></TD>
</TR>
<TR>
<TD></TD>
<TD noWrap>
<P tabIndex="4"><B><FONT size="1">></FONT></B> <A tabIndex="3"
href="ForgottenPassword.aspx">
forgotten your password?</A></P>
<P><B><FONT size="1">></FONT></B> <A tabIndex="5"
href="NewUser.aspx">new
profile?</A></P>
</TD>
</TR>
</TABLE>
</TD>
<TD vAlign="top"></TD>
</TR>
</TABLE>
</asp:panel>

</asp:WizardStep>
<asp:WizardStep ID="wsCourseSelections" runat="server"
Title="Course Selections">
Course Selections
</asp:WizardStep>
<asp:WizardStep ID="wsFavourites" runat="server"
Title="Favourites">
Favorites
</asp:WizardStep>
<asp:WizardStep ID="wsCosts" runat="server" Title="Costs">
<div id="divCosts">
Costs
</div>
</asp:WizardStep>
<asp:WizardStep ID="wsWhatsNext" runat="server" Title="Whats
Next">
<div id="divWhatsNext">
Whats Next
</div>
</asp:WizardStep>
<asp:WizardStep ID="wsSummary" runat="server" Title="Summary">
<div id="divSummary">
Summary
</div>
</asp:WizardStep>
</WizardSteps>
<StepNavigationTemplate>
</StepNavigationTemplate>
<StepStyle BackColor="AntiqueWhite" BorderWidth="5px"
BorderStyle="Double" Height="100%" VerticalAlign="Top"
HorizontalAlign="Left"/>
<NavigationStyle Width="20px" BorderWidth="5px"
BorderStyle="Double" VerticalAlign="Top" />
<SideBarStyle BorderStyle="Solid" Height="100%" VerticalAlign="Top"
Width="180px" />
<HeaderStyle BorderStyle="Solid" BorderWidth="2px" />
</asp:Wizard>
</div>
</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top