• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

Only validate controls if a value is present in first control

I have a form that contains 4 rows of controls, contained in a html table:

txtName1   ddlRelationShip1   ddlYearsLicensed1   ddlMariedYN1
txtName2   ddlRelationShip2   ddlYearsLicensed2   ddlMariedYN2
txtName3   ddlRelationShip3   ddlYearsLicensed3   ddlMariedYN3
txtName4   ddlRelationShip4   ddlYearsLicensed4   ddlMariedYN4
 
If a name is entered into a txtName textbox, then the remaining three fields are also required. For example, if the user fills in txtName1, then ddlRelationShip1, ddlYearsLicensed1, ddlMariedYN1 fields are also required.

The challenge here is, I don’t want to fire off validation on any rows of controls if  the txtNameX contains no entry. In other words, all fields are required but only if the txtNameX contains data.

How can I build validation on this form so that validation is only active on those rows of controls where a name is entered into the name field (txtNameX) ?

Coded samples please. Thank you.

0
jaysch
Asked:
jaysch
  • 10
  • 6
  • 2
  • +1
1 Solution
 
ansudhindraCommented:
Check it if it is useful...

<html>
	<head>
		<script type="text/javascript">
			function checkform(frm){
				var tbl=frm.txtbx;
				for(var i=0; i<tbl.length; i++){
					if(tbl[i].value!=""){
						var j=i+1;
						if(eval("frm.dd"+j+"1.value")==""){
							alert("Please select a value");
							eval("frm.dd"+j+"1.focus()");
							break;
						}
						if(eval("frm.dd"+j+"2.value")==""){
								alert("Please select a value");
								eval("frm.dd"+j+"2.focus()");
								break;
							}
							if(eval("frm.dd"+j+"3.value")==""){
									alert("Please select a value");
									eval("frm.dd"+j+"3.focus()");
									break;
								}
					}
				}
			}
		</script>
	</head>
	<body>
		<form name="testform">
			Name : <input type="textbox" name="txtbx" />&nbsp;&nbsp;&nbsp;
			<select name="dd11">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd12">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd13">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<br>
			Name : <input type="textbox" name="txtbx" />&nbsp;&nbsp;&nbsp;
			<select name="dd21">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd22">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd23">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;<br>
			Name : <input type="textbox" name="txtbx" />&nbsp;&nbsp;&nbsp;
			<select name="dd31">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd32">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;
			<select name="dd33">
				<option value="">Select</option>
				<option value="Option 1">Option 1</option>
				<option value="Option 2">Option 2</option>
				<option value="Option 3">Option 3</option>
				<option value="Option 4">Option 4</option>
			</select>&nbsp;&nbsp;&nbsp;<br>
			<input type="button" value="Validate" onclick="checkform(testform)"/>
		</form>
	</body>
</html>

Open in new window

0
 
baiju_nagoriCommented:
I have used Custom validator and Jquery to perform validation.

It goes like this.


Add a dummy textbox with style = display:none. Add a custom validator with control to validate as dummy textbox & ValidateEmptyText property as true.

Use Jquery wildcard selector to get all the txtName textboxes. Then just iterate through the collection and perform required validation.

Let me know if you need more help.

<script type="text/javascript" language="javascript">

		function ValidateValues(oSrc, args)
		{
			var ErrorMessage = '';
                        var ControlToFocus;
			$('[id~="txtName"]').each(function()
			{
				if (this.value != '')
				{
					// get all the dropdown or other controls in this manner
					ddlRelationShip = this.id.replace("txtName", "ddlRelationShip");
					if ($("#" + ddlRelationShip).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Validation Error for Name: " + this.value + "<br/>";
					}
				}
			});

			oSrc.innerHTML = ErrorMessage;
			
			if (!isValid)
			{
				while (ErrorMessage.indexOf("<br/>") > -1)
					ErrorMessage = ErrorMessage.replace("<br/>", "\n");
				oSrc.setAttribute("errormessage", ErrorMessage);
				//alert(ErrorMessage);
			}

			args.IsValid = isValid;
		}


	</script>


<asp:TextBox ID="TextBox1" runat="server" CssClass="Textbox" Width="75px" style="display:none"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic" Text="Validation Error" ValidateEmptyText="true"></asp:CustomValidator>

Open in new window

0
 
jayschAuthor Commented:
baiju_nagori - Looks like you have come up with a promising solution but I failed to mention the fact that the controls I need to validate are embedded inside a wizard control.

I need something that works within the following structure:

<form runat="server" name="quoteform">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>  

<asp:Wizard ID="Wizard1"  />

<asp:WizardStep ID="WizardStep1" runat="server" StepType="Step">

....... Form controls......

</asp:WizardStep>


<asp:WizardStep ID="WizardStep2" runat="server" StepType="Step">

....... Form controls......

</asp:WizardStep>

</asp:Wizard>
</ContentTemplate>
</asp:UpdatePanel>
</form>

So, I believe I need to run any validation functions using the 'OnActiveStepChanged' or 'OnNextButtonClick' event because there are several steps (sections of the overall form) within the Wizard control. I'm using the 'onfinishbuttonclick' event to submit the entire form output which generates an email.

I tried implementing your solution but it's not having any affect. However, I'm not certain that I implemented your solution correctly.

Again, I apologize for not disclosing this information in my question.




0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dejaanbuCommented:
give a validation group for your Next Button on the wizard. assign the same validation group to the custom validator..

if you have followed @baiju_nagori's code, post it here..so that it is easier to check whether anything wrong in ur implementation..
0
 
jayschAuthor Commented:
"give a validation group for your Next Button on the wizard. assign the same validation group to the custom validator" - Please elaborate on this.

Thanks
0
 
dejaanbuCommented:
say give ValidationGroup property of Next Button to some value , say "step1"
give the same for your validator Controls (required field validatior, Customvalidator etc) ValidatioGroup property to "step1"

i hope u r following @baiju_nagori's code... if u couldnt success, let us know
0
 
jayschAuthor Commented:
Still no luck but I have attached what I have so far.

In the interest of brevity, I have removed code that has no relevance to what we're trying to accomplish.

Please review and let me know what I can do to make this work. I really appreciate the help!


<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Import Namespace="System.Web.UI.WebControls"  %>
<%@ Import Namespace="system.Web.UI"  %>
<%@ Import Namespace="System.Web.UI.WebControls.WebParts"  %>
<%@ Import Namespace="System.Configuration"  %>
<%@ Import Namespace="System.Web"  %>
<%@ Import Namespace="System.Web.Security"  %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="URCtrls" TagName="Header" src="common/Header.ascx" %>
<%@ Register TagPrefix="URCtrls" TagName="LeftNav" src="common/left-menu.ascx" %>
<%@ Register TagPrefix="URCtrls" TagName="Footer" src="common/footer.ascx" %>

<Script Runat="Server">

    Sub GetValuesContactInfo(ByVal sender As Object, ByVal e As EventArgs)
        Label1.Text = _
        "<br /><br /><p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Contact Information&nbsp;&mdash;</p> " & _
        "<br /><table width=""625"" border=""0"" cellspacing=""2"" cellpadding=""2"" " & _
    "<tr><td><strong>Name:</td><td><strong>First Name</strong></td><td colspan=""3""><strong>Last Name</strong></td></tr> " & _
    "<tr><td>&nbsp;</td><td>" & txtFirstName.Text & "</td><td colspan=""3"">" & txtLastName.Text & "</td></tr> " & _
    "<tr><td><strong>Address:</td><td><strong>Street</strong></td><td><strong>City</strong></td><td><strong>State</strong></td><td><strong>Zip</strong></td></tr> " & _
    "</td></tr></table>"
    
        'This code block shortened for brevity
        'This code block shortened for brevity
        
    End Sub
 
    

    Sub Page_Load()

        'If Page.IsPostBack Then

        'End If        
        
    End Sub


    Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
        
        strEmail = txtemail.Text
        strSubject = "Auto Quote Request"

        strFirstName = txtFirstName.Text
        strLastName = txtLastName.Text
        strStreet = txtStreet.Text
        strCity = txtCity.Text
        strState = ddlState.SelectedItem.Value
        strZip = txtZip.Text
        strPhoneDay = txtPhoneDay.Text

        strDrv1Name = txtDrv1Name.Text
        strDrv1Relationship = ddlDrv1Relationship.SelectedItem.Value
        strDrv1BMonth = ddlDrv1BMonth.SelectedItem.Value
        strDrv1BDay = ddlDrv1BDay.SelectedItem.Value
        strDrv1BYear = ddlDrv1BYear.SelectedItem.Value
        strDrv1YrsLicensed = ddlDrv1YrsLicensed.SelectedItem.Value

        strDrv2Name = txtDrv2Name.Text
        strDrv2Relationship = ddlDrv2Relationship.SelectedItem.Value
       

        'This code block shortened for brevity
        'This code block shortened for brevity
 



        Dim UpdateDate As Date
        ' Today's Date
        Dim CurDate As DateTime
        CurDate = DateTime.Now()
        UpdateDate = CurDate.ToString("g")

        ' Create the HTML Message Body
        strHTMLBody = "<html><head>" & _
        "<title>Auto Quote Request</title>" & _
        "</head><body bgcolor=#F7F6F3 style=""font-size:11px;font-family:Arial,Helvetica,sans-serif;"">" & _
         "<b>The following Auto Quote request was made on:</b> " & UpdateDate & " <br><br> " & _
         "<br /><br /><p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Contact Information&nbsp;&mdash;</p> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""2"" cellpadding=""2"" " & _
           "<tr><td><strong>Name:</td><td><strong>First Name</strong></td><td colspan=""3""><strong>Last Name</strong></td></tr> " & _
           "<tr><td>&nbsp;</td><td>" & strFirstName & "</td><td colspan=""3"">" & strLastName & "</td></tr> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""4"" cellpadding=""4""><tr><td> </td><td><strong>Name</strong></td><td><strong>Relationship</strong></td><td><strong>Birth Date</strong></td><td><strong>Years Licensed</strong></td></tr><tr><td><strong>Driver 1:</strong></td><td> " & _
           txtDrv1Name.Text & "</td><td>" & ddlDrv1Relationship.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrv1BMonth.SelectedItem.Value & " " & ddlDrv1BDay.SelectedItem.Value & " " & ddlDrv1BYear.SelectedItem.Value & "</td><td>" & ddlDrv1YrsLicensed.SelectedItem.Value & "</td></tr>" & _
           "<tr><td><strong>Driver 2:</strong></td><td>" & txtDrv2Name.Text & "</td><td>" & ddlDrv2Relationship.SelectedItem.Value & "</td>" & _
          </body></html>"

               
        Dim Mail As New MailMessage()
        
        Mail.From = New MailAddress("QuoteRequests@nowhere.com")
        Mail.To.Add(strEmail)
        
        Mail.To.Add(New MailAddress(strEmail))
        Mail.Bcc.Add(New MailAddress("nobody@nowhere.net", "John Doe"))
        Mail.Subject = strSubject
        Mail.Body = strHTMLBody
        Mail.IsBodyHtml = True
        
        'send the message
        Dim smtp As New SmtpClient("127.0.0.1")
        smtp.Send(Mail)
		
		       
        'This code block shortened for brevity
        'This code block shortened for brevity

			
    End Sub
  
  
</Script>



<!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 id="Head1" runat="server" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Auto Quote Request</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="common/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="common/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>



<script type="text/javascript" language="javascript">

		function ValidateValues(oSrc, args)
		{
			var ErrorMessage = '';
                        var ControlToFocus;
			$('[id~="txtDrv1Name"]').each(function()
			{
				if (this.value != '')
				{
					// get all the dropdown or other controls in this manner
					ddlDrv1Relationship = this.id.replace("txtDrv1Name", "ddlDrv1Relationship");
					if ($("#" + ddlDrv1Relationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Validation Error for Name: " + this.value + "<br/>";
					}
				}
			});

			oSrc.innerHTML = ErrorMessage;
			
			if (!isValid)
			{
				while (ErrorMessage.indexOf("<br/>") > -1)
					ErrorMessage = ErrorMessage.replace("<br/>", "\n");
				oSrc.setAttribute("errormessage", ErrorMessage);
				//alert(ErrorMessage);
			}

			args.IsValid = isValid;
		}


	</script>




</head>

<body style="background:url(images/body-bg2.gif) top left repeat-x #fef6e5;">
<div id="container">
<div class="header-regpage">


<!-- ####### START HEADER ####### -->
<URCtrls:Header id="TopNav" runat="server" />
<!-- ####### END HEADER MENU ####### -->

<div class="clear"></div>
</div>
<div class="content-box">
<div class="quote-main floatl">
<div class="quotemain-content">
<h1>Auto Quote Request</h1>
<div style="padding:10px 0 10px 0">

  
     <div style="line-height:19px;font-family:Arial, Helvetica, sans-serif; font-size:13px;color:#3D1804; margin-left:0px;" >
<form runat="server" name="quoteform">

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>



 <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
     <ContentTemplate>  
 <!-- Section #1  -->
 
  <asp:Wizard ID="Wizard1" Width="872" BackColor="#E6E2D8" 
             HeaderText="Auto Insurance Quotation Information Worksheet" runat="server" 
             BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="2" 
             CellSpacing="4" OnActiveStepChanged="GetValuesContactInfo" 
             onfinishbuttonclick="Wizard1_FinishButtonClick" CssClass="wizardsidestep" 
             HeaderStyle-Height="35px"  >        
        
            <WizardSteps>
 
 
 
  <asp:WizardStep ID="WizardStep1" runat="server" StepType="Start" Title="Start worksheet">
            
           <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu ipsum dui. Nam laoreet faucibus vestibulum. Nulla rutrum vulputate nisl, in adipiscing nibh venenatis vitae. Vivamus laoreet nisl eget justo aliquam cursus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p><br />
            
            <p>We will respond to your auto quote request with in two business days.</p><br />

            <p>Please click <strong>Next</strong> to proceed.</p><br /><br />

  </asp:WizardStep>
 
 
 
  <asp:WizardStep ID="WizardStep2" runat="server" StepType="Step" Title="Step 1: Your contact info">               
 
 <br />
<h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;Your Contact Information&nbsp;&mdash;</strong></h3><br />

 
 
 <table width="600" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td><strong>Name<span style="font-size:small;">*</span></strong>:</td>
      <td><strong>First Name</strong></td>
      <td colspan="3"><strong>Last Name</strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtFirstName" MaxLength="50" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valFirstName" runat="server" ErrorMessage="Please enter first name"  ControlToValidate="txtFirstName" Display="Dynamic" ValidationGroup="AutoQuote" />
      </td>
      <td colspan="3"><asp:TextBox ID="txtLastName" MaxLength="75" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valLastName" runat="server" ErrorMessage="Please enter last name"  ControlToValidate="txtLastName" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
    </tr>
    <tr>
      <td><strong>Address<span style="font-size:small;">*</span></strong>:</td>
      <td><strong>Street</strong></td>
      <td><strong>City</strong></td>
      <td><strong>State</strong></td>
      <td><strong></strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtStreet" MaxLength="75" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valStreet" runat="server" ErrorMessage="Please enter street address"  ControlToValidate="txtStreet" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td><asp:TextBox ID="txtCity" MaxLength="75" runat="server" />&nbsp;&nbsp;
      <br /><asp:RequiredFieldValidator ID="valCity" runat="server" ErrorMessage="Please enter city"  ControlToValidate="txtCity" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td><asp:DropDownList ID="ddlState" runat="server">
                                  <asp:ListItem Value="">-- Select a State --</asp:ListItem>
                                  <asp:ListItem Value="Alabama">Alabama</asp:ListItem>
                                  <asp:ListItem Value="Alaska">Alaska</asp:ListItem>
                                  <asp:ListItem Value="Arizona">Arizona</asp:ListItem>
                                  <asp:ListItem Value="Arkansas">Arkansas</asp:ListItem>
                                  <asp:ListItem Value="California">California</asp:ListItem>
                                  <asp:ListItem Value="Colorado">Colorado</asp:ListItem>
                                  <asp:ListItem Value="Connecticut">Connecticut</asp:ListItem>
                                 
                                 
      </asp:DropDownList >
      <br />
      
      <asp:RequiredFieldValidator ID="valState" runat="server" ErrorMessage="Please enter state"  ControlToValidate="ddlState" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td>
      
      </td>
    </tr>
    <tr>
      <td> <strong>Phone<span style="font-size:small;">*</span>:</strong></td>
      <td><strong>Daytime Phone</strong></td>
      <td ><strong>EMail</strong></td>
      <td><strong>Zip</strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtPhoneDay" MaxLength="25" TextMode="SingleLine" runat="server" /><br />
       <asp:RequiredFieldValidator ID="valPhoneDay" runat="server" ErrorMessage="Please enter zip code"  ControlToValidate="txtPhoneDay" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td ><asp:TextBox ID="txtemail" runat="server"  /><br />
      
      <asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Please enter email address"  ControlToValidate="txtemail" Display="Dynamic" ValidationGroup="AutoQuote" />
      <asp:RegularExpressionValidator ID="valEmailValid" runat="server" ErrorMessage="Please enter a valid email address" ControlToValidate="txtemail" Display="Dynamic"  ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
      
      
      </td>
      <td align="left"><asp:TextBox ID="txtZip" MaxLength="11" runat="server" /><br />
       <asp:RequiredFieldValidator ID="valZip" runat="server" ErrorMessage="Please enter zip code"  ControlToValidate="txtZip" Display="Dynamic" ValidationGroup="AutoQuote" /></td>
    </tr>
  </table>
 <br /><br />
 <p><span style="font-size:large;">*</span><i>All fields on this screen are required</i></p>
 
<br /><br /><br />
 
  </asp:WizardStep>
  
  
  
  
  
  
  
  
  
  
  <asp:WizardStep ID="WizardStep3" runat="server" StepType="Step" Title="Step 2: List All Drivers">
  
 
 <h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;List All Drivers&nbsp;&mdash;</strong></h3><br />
 
 
<div style="margin:0px 0px 10px 18px;"><asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList" HeaderText="<u>Please Complete the Following Fields:</u>" ValidationGroup="AutoQuote" /></div> 
 
 
 
 <asp:TextBox ID="TextBox1" runat="server" CssClass="Textbox" Width="75px" style="display:none"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic" Text="Validation Error" ValidateEmptyText="true"></asp:CustomValidator>
 
 
 

 
 <!--- HeaderText="<u>Please Complete the Following Fields:</u>"  Section #2 -->
 <table width="600" border="0" cellspacing="3" cellpadding="3">
    <tr>
      <td>&nbsp;</td>
      <td><strong>Name</strong></td>
      <td><strong>Relationship</strong></td>
      <td><strong>Birth Date</strong></td>
      <td><strong>Years Licensed</strong></td>
    </tr>
    <tr>
      <td><strong>Driver 1:</strong></td>
      <td><asp:TextBox ID="txtDrv1Name" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />      
      <asp:RequiredFieldValidator ID="valDrv1Name" runat="server" ErrorMessage="Driver #1 Name"  ControlToValidate="txtDrv1Name" Display="none"  ValidationGroup="AutoQuote" />
      </td>
      <td>
      <asp:DropDownList ID="ddlDrv1Relationship" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>     
      <asp:RequiredFieldValidator ID="valddlDrv1Relationship" runat="server" ErrorMessage="Driver #1 Relationship"  ControlToValidate="ddlDrv1Relationship" Display="none" ValidationGroup="AutoQuote"  />
       </td>
      <td>
<asp:DropDownList ID="ddlDrv1BMonth" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList> 
 <asp:RequiredFieldValidator ID="valddlDrv1BMonth" runat="server" ErrorMessage="Driver #1 Birth Date - Month"  ControlToValidate="ddlDrv1BMonth" Display="none" ValidationGroup="AutoQuote"  />
 &nbsp;     
<asp:DropDownList ID="ddlDrv1BDay" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 
 </asp:DropDownList>
      &nbsp;
<asp:RequiredFieldValidator ID="valddlDrv1BDay" runat="server" ErrorMessage="Driver #1 Birth Date - Day"  ControlToValidate="ddlDrv1BDay" Display="none" ValidationGroup="AutoQuote"  />
<asp:DropDownList ID="ddlDrv1BYear" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>

<
</asp:DropDownList>      
<asp:RequiredFieldValidator ID="valddlDrv1BYear" runat="server" ErrorMessage="Driver #1 Birth Date - Year"  ControlToValidate="ddlDrv1BYear" Display="none" ValidationGroup="AutoQuote" />
</td>
      <td><asp:DropDownList ID="ddlDrv1YrsLicensed" runat="server">
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>1</asp:ListItem>
      <asp:ListItem>2</asp:ListItem>
      <asp:ListItem>3-5</asp:ListItem>
      <asp:ListItem>5-8</asp:ListItem>
      <asp:ListItem>10-14</asp:ListItem>
      <asp:ListItem>15-50</asp:ListItem>
      <asp:ListItem>Over 50</asp:ListItem>      
      </asp:DropDownList>
 <asp:RequiredFieldValidator ID="valddlDrv1YrsLicensed" runat="server" ErrorMessage="Driver #1 years licensed"  ControlToValidate="ddlDrv1YrsLicensed" Display="none" ValidationGroup="AutoQuote"  />
  </td>
    </tr>
    <tr>
      <td><strong>Driver 2:</strong></td>
      <td><asp:TextBox ID="txtDrv2Name" MaxLength="75" TextMode="SingleLine" runat="server"  Width="95" />
      
     <asp:RequiredFieldValidator ID="valDrv2Name" runat="server" ErrorMessage="Driver #2 Name" ControlToValidate="txtDrv2Name"  Display="none" ValidationGroup="AutoQuote"  />
      
      
      </td>
      <td>
      <asp:DropDownList ID="ddlDrv2Relationship" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      
      
      <asp:RequiredFieldValidator ID="valddlDrv2Relationship" runat="server" ErrorMessage="Driver #2 Relationship"  ControlToValidate="ddlDrv2Relationship" Display="none" ValidationGroup="AutoQuote"  />
      
      
      
      </td>
      <td><asp:DropDownList ID="ddlDrv2BMonth" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>

<asp:RequiredFieldValidator ID="valddlDrv2BMonth" runat="server" ErrorMessage="Driver #2 Month"  ControlToValidate="ddlDrv2BMonth" Display="none"  ValidationGroup="AutoQuote"  />
      

      
      &nbsp;
<asp:DropDownList ID="ddlDrv2BDay" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 
 </asp:DropDownList>
 
 <asp:RequiredFieldValidator ID="valddlDrv2BDay" runat="server" ErrorMessage="Driver #2 Day"  ControlToValidate="ddlDrv2BDay"  Display="none" ValidationGroup="AutoQuote" />

      
          &nbsp; 
<asp:DropDownList ID="ddlDrv2BYear" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
</asp:DropDownList>

<asp:RequiredFieldValidator ID="valddlDrv2BYear" runat="server" ErrorMessage="Driver #2 Year"  ControlToValidate="ddlDrv2BYear" Display="none" ValidationGroup="AutoQuote"  />




</td>
      <td><asp:DropDownList ID="ddlDrv2YrsLicensed" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList>
      
      
<asp:RequiredFieldValidator ID="valddlDrv2YrsLicensed" runat="server" ErrorMessage="Driver #2 Years Licensed"  ControlToValidate="ddlDrv2YrsLicensed" Display="none" ValidationGroup="AutoQuote"  />
      
      
      
      
      </td>
    </tr>
    <tr>
      <td><strong>Driver 3:</strong></td>
      <td><asp:TextBox ID="txtDrv3Name" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" /></td>
      <td>
       <asp:DropDownList ID="ddlDrv3Relationship" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="ddlDrv3BMonth" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>
      
      &nbsp;
<asp:DropDownList ID="ddlDrv3BDay" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 
 </asp:DropDownList>
      &nbsp;
           
<asp:DropDownList ID="ddlDrv3BYear" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>


</asp:DropDownList></td>
      <td><asp:DropDownList ID="ddlDrv3YrsLicensed" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList></td>
    </tr>
    <tr>
      <td><strong>Driver 4:</strong></td>
      <td><asp:TextBox ID="txtDrv4Name" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" /></td>
      <td>
       <asp:DropDownList ID="ddlDrv4Relationship" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="ddlDrv4BMonth" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>
      &nbsp;
      
</td>
    </tr>
        </table>
 <br />
    
    <table style="width:600px;">
       <tr>
    <td >
    <br />
    <p style="text-align:justify;line-height:17px; border:1px solid #E3E3E3; padding:10px;"><span style="font-weight:bold; text-decoration:underline;">Ticket/Accident Disclaimer</span><br/> Have you or any other driver in your household received a ticket or accident in the last three years?  (Failure to disclose an accident or ticket will result in an inaccurate quotation. It can also result disqualifying you from an insurance company. Some of our insurance companies only accept good driver by definition.)<br /><br />
If you have gone to traffic school more than once in the last 18 months, it will show up on your motor vehicle report as dismissed and be charged as a point.<br /><br />
If your license has been suspended for even one day in the last three years you will not qualify for a good driver discount (20%). You must be licensed continuously for three years to qualify.</p>
<br />
</td>
</tr>
  </table>  
  
 </asp:WizardStep>
 
 
 
 
 
  
  <asp:WizardStep ID="WizardStep4" runat="server" StepType="Step" Title="Step 3: Tickets &amp; Accidents">

More Steps form controls...


</asp:WizardStep>
 
 
 
 


 <asp:WizardStep ID="WizardStep7" runat="server" Title="Step 6: Review" StepType="Finish">
<br />

<p>Please review all your entries carefully. To make corrections or additions, you may go back to any previous step by either Clicking the <strong>Previous</strong> button or by Clicking a <strong>Step Link</strong> from the left menu. </p>
<br /><p>When you are ready to submit your Auto quote to Insurance, navigate back to this screen (Review) and Click <strong>Finish.</strong> </p>

<asp:Label ID="Label1" runat="server"></asp:Label><br />

<p>&nbsp;</p>
<p>When you are ready to submit your Auto quote, Click <strong>Finish.</strong>.

</p>
<p>&nbsp;</p>


</asp:WizardStep>

  <asp:WizardStep ID="WizardStep8" runat="server" Title="Complete worksheet" StepType="Complete">
  <p>Congratulations! You have successfully completed the Auto Insurance Quotation Information Worksheet.</p><br />
           <p>Please allow up to 48 hours for a response.</p><br />
           <br />
           
   <p> If you require further assistance, please contact toll free at (800) 555-1212.</p><br />
  
   <hr noshade color="#808080" size="1" width="94%"><br />
  <a style="color:#3D1804;" href="http://nowhere.com/Quote.aspx">Submit another quote request</a> | <a style="color:#3D1804;" href="http://nowhere.com/">Return to nowhere.com home</a>
                
          
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          
          </asp:WizardStep>
                
            </WizardSteps>
            
            <SideBarButtonStyle ForeColor="#AFB9C5" /> 
            <SideBarStyle BackColor="#C8BEA8" Font-Size="0.9em" VerticalAlign="Top" Width="170" HorizontalAlign="Left" />
            
            <SideBarTemplate>
                <asp:DataList ID="SideBarList" runat="server" Width="170" CellPadding="7" CellSpacing="7">
                    <ItemTemplate>
                        <asp:LinkButton ID="SideBarButton" runat="server" ForeColor="#336699"></asp:LinkButton>
                    </ItemTemplate>
                    <SelectedItemStyle Font-Bold="True" ForeColor="#00CC00" Font-Underline="True" />
                </asp:DataList>
            </SideBarTemplate>
            
            
                        
           <StartNavigationTemplate>
                <asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" 
                    Text="Next" />
            </StartNavigationTemplate>
            
            
            <NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" 
                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
                ForeColor="#1C5E55" />
            
                     
            <FinishNavigationTemplate>
                <asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" 
                    CommandName="MovePrevious" Text="Previous" />
                <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" ValidationGroup="AutoQuote" Text="Finish" />
            </FinishNavigationTemplate>
            
            <HeaderStyle BackColor="#888888" BorderColor="#E6E2D8" BorderStyle="Solid" 
                BorderWidth="2px" Font-Bold="True" Font-Size="1.1em" ForeColor="White" 
                HorizontalAlign="Center" />
                
            
            <StepNavigationTemplate>
                <asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious" Text="Previous" />
                <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next" CausesValidation="True" ValidationGroup="AutoQuote"  />
            </StepNavigationTemplate>
            
            <StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" CssClass="wizardsidestep"  BorderStyle="Solid" 
                BorderWidth="2px" />            
             
        </asp:Wizard>

  
  <p>&nbsp;</p>
  </ContentTemplate>
     </asp:UpdatePanel>
     
 
  </form>  
  
  </div>
    
  </div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </div>
   
</div>

</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>

<!-- ####### START FOOTER ####### -->
<URCtrls:Footer id="BtmNav" runat="server" />
<!-- ####### END FOOTER ####### -->
</body>
</html>

Open in new window

0
 
baiju_nagoriCommented:
Hi,

These are the things I noticed in your code.

1) Add a validation group to the custom validator

2) Rename all your controls to have numbers in end i.e. txtDrv1Name should be txtDrvName1. This is becausee we are using wild card search in jQuery function. $('[id~="txtDrvName"]').each(function(){}

3) Get rid of all the required validators other than valDrv1Name

4) Modify the jQuery function to perform validation. Since first text box has the required field validator, it wont let you move to next step. Once there is some value in 1st text box, the custom validation function will kick in, where you can check whether proper dropdown values have been selected or not.

5) Use alert(); to see what the values are in the validation function. You can use IE to step through and add watch to variables too.


<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic" Text="Validation Error" ValidateEmptyText="true" ValidationGroup="AutoQuote"></asp:CustomValidator>

Open in new window

0
 
jayschAuthor Commented:
baiju_nagori,

#2 - I renamed all text boxes to txtDrvName1, txtDrvName2, txtDrvName3, txtDrvName4, txtDrvName5.
Question: What about all the drop-downs - should I rename those as well?

#4 - Please explain on how I should modify the jQuery function.

#5 - I'm not familiar with using IE to step through code, have only does this in VS.

Will I be able to show validation error messages either at the top of the group of fields or using a Pop Up? The controls in this section of my form are packed very close together and there is really no room for error messages adjacent to or directly under the control.

Thanks very much.



 
0
 
baiju_nagoriCommented:
I am attaching the code that works (just the validation part).

It is scaled down a bit, custom validation function works, I have written validation for all the dropdown boxes.


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Wizard.aspx.vb" Inherits="Webforms_Temp_Wizard" %>

<!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></title>

	<script type="text/javascript" src="../../JS/jquery-1.2.3.min.js"></script>

	<script type="text/javascript" language="javascript">

		function ValidateValues(oSrc, args)
		{

			var ErrorMessage = '';
			var ControlToFocus;
			var isValid = true;
			$('[id~="txtDrvName"]').each(function()
			{
				if (this.value != '')
				{
					// get all the dropdown or other controls in this manner
					ddlDrvRelationship = this.id.replace("txtDrvName", "ddlDrvRelationship");
					if ($("#" + ddlDrvRelationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Relationship not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBMonth = this.id.replace("txtDrvName", "ddlDrvBMonth");
					if ($("#" + ddlDrvBMonth).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Month not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBDay = this.id.replace("txtDrvName", "ddlDrvBDay");
					if ($("#" + ddlDrvBDay).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Day not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBYear = this.id.replace("txtDrvName", "ddlDrvBYear");
					if ($("#" + ddlDrvRelationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Year not specified for Driver: " + this.value + "<br/>";
					}
				}
			});

			oSrc.innerHTML = ErrorMessage;

			if (!isValid)
			{
				while (ErrorMessage.indexOf("<br/>") > -1)
					ErrorMessage = ErrorMessage.replace("<br/>", "\n");
				oSrc.setAttribute("errormessage", ErrorMessage);
				//alert(ErrorMessage);
			}

			args.IsValid = isValid;
		}


	</script>

</head>
<body>
	<form id="form1" runat="server">
	<div>
		<asp:Wizard ID="Wizard1" Width="872" BackColor="#E6E2D8" HeaderText="Auto Insurance Quotation Information Worksheet"
			runat="server" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="2"
			CellSpacing="4" CssClass="wizardsidestep" HeaderStyle-Height="35px" ActiveStepIndex="1">
			<WizardSteps>
				<asp:WizardStep ID="WizardStep1" runat="server" StepType="Start" Title="Start worksheet">
					<p>
						Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu ipsum dui.
						Nam laoreet faucibus vestibulum. Nulla rutrum vulputate nisl, in adipiscing nibh
						venenatis vitae. Vivamus laoreet nisl eget justo aliquam cursus. Lorem ipsum dolor
						sit amet, consectetur adipiscing elit.</p>
					<br />
					<p>
						We will respond to your auto quote request with in two business days.</p>
					<br />
					<p>
						Please click <strong>Next</strong> to proceed.</p>
					<br />
					<br />
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep2" runat="server" StepType="Step" Title="Step 1: Your contact info">
					<br />
					<h3 style="text-align: center; height: 21px; padding-top: 4px;">
						<strong>&mdash;&nbsp;Your Contact Information&nbsp;&mdash;</strong></h3>
					<br />
					<table width="600" border="0" cellspacing="2" cellpadding="2">
						<tr>
							<td>
								<strong>Name<span style="font-size: small;">*</span></strong>:
							</td>
							<td>
								<strong>First Name</strong>
							</td>
							<td colspan="3">
								<strong>Last Name</strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtFirstName" MaxLength="50" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valFirstName" runat="server" ErrorMessage="Please enter first name"
									ControlToValidate="txtFirstName" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td colspan="3">
								<asp:TextBox ID="txtLastName" MaxLength="75" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valLastName" runat="server" ErrorMessage="Please enter last name"
									ControlToValidate="txtLastName" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
						</tr>
						<tr>
							<td>
								<strong>Address<span style="font-size: small;">*</span></strong>:
							</td>
							<td>
								<strong>Street</strong>
							</td>
							<td>
								<strong>City</strong>
							</td>
							<td>
								<strong>State</strong>
							</td>
							<td>
								<strong></strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtStreet" MaxLength="75" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valStreet" runat="server" ErrorMessage="Please enter street address"
									ControlToValidate="txtStreet" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:TextBox ID="txtCity" MaxLength="75" runat="server" />&nbsp;&nbsp;
								<br />
								<asp:RequiredFieldValidator ID="valCity" runat="server" ErrorMessage="Please enter city"
									ControlToValidate="txtCity" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:DropDownList ID="ddlState" runat="server">
									<asp:ListItem Value="">-- Select a State --</asp:ListItem>
									<asp:ListItem Value="Alabama">Alabama</asp:ListItem>
									<asp:ListItem Value="Alaska">Alaska</asp:ListItem>
									<asp:ListItem Value="Arizona">Arizona</asp:ListItem>
									<asp:ListItem Value="Arkansas">Arkansas</asp:ListItem>
									<asp:ListItem Value="California">California</asp:ListItem>
									<asp:ListItem Value="Colorado">Colorado</asp:ListItem>
									<asp:ListItem Value="Connecticut">Connecticut</asp:ListItem>
								</asp:DropDownList>
								<br />
								<asp:RequiredFieldValidator ID="valState" runat="server" ErrorMessage="Please enter state"
									ControlToValidate="ddlState" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Phone<span style="font-size: small;">*</span>:</strong>
							</td>
							<td>
								<strong>Daytime Phone</strong>
							</td>
							<td>
								<strong>EMail</strong>
							</td>
							<td>
								<strong>Zip</strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtPhoneDay" MaxLength="25" TextMode="SingleLine" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valPhoneDay" runat="server" ErrorMessage="Please enter zip code"
									ControlToValidate="txtPhoneDay" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:TextBox ID="txtemail" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Please enter email address"
									ControlToValidate="txtemail" Display="Dynamic" ValidationGroup="AutoQuote" />
								<asp:RegularExpressionValidator ID="valEmailValid" runat="server" ErrorMessage="Please enter a valid email address"
									ControlToValidate="txtemail" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
							</td>
							<td align="left">
								<asp:TextBox ID="txtZip" MaxLength="11" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valZip" runat="server" ErrorMessage="Please enter zip code"
									ControlToValidate="txtZip" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
						</tr>
					</table>
					<br />
					<br />
					<p>
						<span style="font-size: large;">*</span><i>All fields on this screen are required</i></p>
					<br />
					<br />
					<br />
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep3" runat="server" StepType="Step" Title="Step 2: List All Drivers">
					<h3 style="text-align: center; height: 21px; padding-top: 4px;">
						<strong>&mdash;&nbsp;List All Drivers&nbsp;&mdash;</strong></h3>
					<br />
					<div style="margin: 0px 0px 10px 18px;">
						<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
							HeaderText="<u>Please Complete the Following Fields:</u>" ValidationGroup="AutoQuote" />
					</div>
					<asp:TextBox ID="TextBox1" runat="server" Width="75px" Style="display: none"></asp:TextBox>
					<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1"
						ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic"
						Text="Validation Error" ValidateEmptyText="true" ValidationGroup="AutoQuote"></asp:CustomValidator>
					<!--- HeaderText="<u>Please Complete the Following Fields:</u>"  Section #2 -->
					<table width="600" border="0" cellspacing="3" cellpadding="3">
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<strong>Name</strong>
							</td>
							<td>
								<strong>Relationship</strong>
							</td>
							<td>
								<strong>Birth Date</strong>
							</td>
							<td>
								<strong>Years Licensed</strong>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 1:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName1" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
								<asp:RequiredFieldValidator ID="valDrv1Name" runat="server" ErrorMessage="Driver #1 Name"
									ControlToValidate="txtDrvName1" Display="none" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship1" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth1" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay1" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear1" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed1" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 2:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName2" MaxLength="75" TextMode="SingleLine" runat="server"
									Width="95" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship2" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth2" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay2" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
									<asp:ListItem Value="11">11</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear2" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed2" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 3:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName3" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship3" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth3" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay3" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear3" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed3" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 4:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName4" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrv4Relationship" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth4" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay4" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear4" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed4" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
					</table>
					<br />
					<table style="width: 600px;">
						<tr>
							<td>
								<br />
								<p style="text-align: justify; line-height: 17px; border: 1px solid #E3E3E3; padding: 10px;">
									<span style="font-weight: bold; text-decoration: underline;">Ticket/Accident Disclaimer</span><br />
									Have you or any other driver in your household received a ticket or accident in
									the last three years? (Failure to disclose an accident or ticket will result in
									an inaccurate quotation. It can also result disqualifying you from an insurance
									company. Some of our insurance companies only accept good driver by definition.)<br />
									<br />
									If you have gone to traffic school more than once in the last 18 months, it will
									show up on your motor vehicle report as dismissed and be charged as a point.<br />
									<br />
									If your license has been suspended for even one day in the last three years you
									will not qualify for a good driver discount (20%). You must be licensed continuously
									for three years to qualify.</p>
								<br />
							</td>
						</tr>
					</table>
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep4" runat="server" StepType="Step" Title="Step 3: Tickets &amp; Accidents">
					More Steps form controls...
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep7" runat="server" Title="Step 6: Review" StepType="Finish">
					<br />
					<p>
						Please review all your entries carefully. To make corrections or additions, you
						may go back to any previous step by either Clicking the <strong>Previous</strong>
						button or by Clicking a <strong>Step Link</strong> from the left menu.
					</p>
					<br />
					<p>
						When you are ready to submit your Auto quote to Insurance, navigate back to this
						screen (Review) and Click <strong>Finish.</strong>
					</p>
					<asp:Label ID="Label1" runat="server"></asp:Label><br />
					<p>
						&nbsp;</p>
					<p>
						When you are ready to submit your Auto quote, Click <strong>Finish.</strong>.
					</p>
					<p>
						&nbsp;</p>
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep8" runat="server" Title="Complete worksheet" StepType="Complete">
					<p>
						Congratulations! You have successfully completed the Auto Insurance Quotation Information
						Worksheet.</p>
					<br />
					<p>
						Please allow up to 48 hours for a response.</p>
					<br />
					<br />
					<p>
						If you require further assistance, please contact toll free at (800) 555-1212.</p>
					<br />
					<hr noshade color="#808080" size="1" width="94%">
					<br />
					<a style="color: #3D1804;" href="http://nowhere.com/Quote.aspx">Submit another quote
						request</a> | <a style="color: #3D1804;" href="http://nowhere.com/">Return to nowhere.com
							home</a>
					<p>
						&nbsp;</p>
					<p>
						&nbsp;</p>
					<p>
						&nbsp;</p>
				</asp:WizardStep>
			</WizardSteps>
			<SideBarButtonStyle ForeColor="#AFB9C5" />
			<SideBarStyle BackColor="#C8BEA8" Font-Size="0.9em" VerticalAlign="Top" Width="170"
				HorizontalAlign="Left" />
			<SideBarTemplate>
				<asp:DataList ID="SideBarList" runat="server" Width="170" CellPadding="7" CellSpacing="7">
					<ItemTemplate>
						<asp:LinkButton ID="SideBarButton" runat="server" ForeColor="#336699"></asp:LinkButton>
					</ItemTemplate>
					<SelectedItemStyle Font-Bold="True" ForeColor="#00CC00" Font-Underline="True" />
				</asp:DataList>
			</SideBarTemplate>
			<StartNavigationTemplate>
				<asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="Next" />
			</StartNavigationTemplate>
			<NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid"
				BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
			<FinishNavigationTemplate>
				<asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
					Text="Previous" />
				<asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" ValidationGroup=""
					Text="Finish" />
			</FinishNavigationTemplate>
			<HeaderStyle BackColor="#888888" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="2px"
				Font-Bold="True" Font-Size="1.1em" ForeColor="White" HorizontalAlign="Center" />
			<StepNavigationTemplate>
				<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
					Text="Previous" />
				<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next"
					CausesValidation="True" ValidationGroup="AutoQuote" OnClientClick />
			</StepNavigationTemplate>
			<StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" CssClass="wizardsidestep" BorderStyle="Solid"
				BorderWidth="2px" />
		</asp:Wizard>
	</div>
	</form>
</body>
</html>

Open in new window

0
 
jayschAuthor Commented:
baiju_nagori,

I implemented you code but nothing seems to happen. If I add the Validation summery control, I see the the 1st name text box looking for input but other than that, I'm able to navigate to the next screen without errors, even if I populate the name text boxes.

The way it should work is:

- All controls in the first row of controls are required.
- All other rows (2nd - 5th) Drop-downs are required if a name is entered.

I'm probable doing something wrong. Just so you know, there are several other sections (steps) to the form that are still using Required Validators. Hope that is OK.

I'm wondering if the problem is with ValadationGroup?

I'll make another post and include the entire form, including your additional code if that will help.





0
 
baiju_nagoriCommented:
0
 
jayschAuthor Commented:
Thanks for sending the screen shots. That answers the question of a Validation Summery control.

I'll go back over my code, I must have missed something.
0
 
jayschAuthor Commented:
baiju_nagori,

Attached is the complete page because I thought you should see all the code in case there is something else in the code that's affecting your code from running.

Let me know if your code is implemented correctly.

Thanks again for all your help.
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Import Namespace="System.Web.UI.WebControls"  %>
<%@ Import Namespace="ystem.Web.UI"  %>
<%@ Import Namespace="System.Web.UI.WebControls.WebParts"  %>
<%@ Import Namespace="System.Configuration"  %>
<%@ Import Namespace="System.Web"  %>
<%@ Import Namespace="System.Web.Security"  %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Net.Mail" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="URCtrls" TagName="Header" src="common/Header.ascx" %>
<%@ Register TagPrefix="URCtrls" TagName="LeftNav" src="common/left-menu.ascx" %>
<%@ Register TagPrefix="URCtrls" TagName="Footer" src="common/footer.ascx" %>

<Script Runat="Server">

Private strHTMLBody As String
Private strSubject AS String
    Private strEmailTo As String
Private strSubjectTo AS String
Private strEmail AS String

    'Declare Private Variables From Auto Section

    Private strFirstName As String
    Private strLastName As String
Private strStreet As String 
Private strCity As String 
Private strState As String  'ddl
Private strZip As String 
Private strPhoneDay As String 

    ' List All Drivers - 'WizardStep2
Private strDrv1Name As String
Private strDrv1Relationship As String 'ddl
Private strDrv1BMonth As String 'ddl
Private strDrv1BDay As String 'ddl
Private strDrv1BYear As String 'ddl
Private strDrv1YrsLicensed As String 'ddl

Private strDrv2Name As String
Private strDrv2Relationship As String 'ddl
Private strDrv2BMonth As String 'ddl
Private strDrv2BDay As String 'ddl
Private strDrv2BYear As String 'ddl
Private strDrv2YrsLicensed As String 'ddl

Private strDrv3Name As String
Private strDrv3Relationship As String 'ddl
Private strDrv3BMonth As String 'ddl
Private strDrv3BDay As String 'ddl
Private strDrv3BYear As String 'ddl
Private strDrv3YrsLicensed As String 'ddl

Private strDrv4Name As String
Private strDrv4Relationship As String 'ddl
Private strDrv4BMonth As String 'ddl
Private strDrv4BDay As String 'ddl
Private strDrv4BYear As String 'ddl
Private strDrv4YrsLicensed As String 'ddl

Private strDrv5Name As String
Private strDrv5Relationship As String 'ddl
Private strDrv5BMonth As String 'ddl
Private strDrv5BDay As String 'ddl
Private strDrv5BYear As String 'ddl
Private strDrv5YrsLicensed As String 'ddl

Private strDrv1TicAcc As String 'ddl
Private strDrv1TicAccDt As String
Private strDrv1LicSusYN As String
Private strDrv1LicRstDt As String

Private strDrv2TicAcc As String 'ddl
Private strDrv2TicAccDt As String
Private strDrv2LicSusYN As String
Private strDrv2LicRstDt As String

Private strDrv3TicAcc As String 'ddl
Private strDrv3TicAccDt As String
Private strDrv3LicSusYN As String
Private strDrv3LicRstDt As String

Private strDrv4TicAcc As String 'ddl
Private strDrv4TicAccDt As String
Private strDrv4LicSusYN As String
Private strDrv4LicRstDt As String

Private strDrv5TicAcc As String 'ddl
Private strDrv5TicAccDt As String
Private strDrv5LicSusYN As String
Private strDrv5LicRstDt As String

Private strVeh1Year As String
Private strVeh1Make As String
Private strVeh1Model As String
Private strVeh1Vin As String
Private strVeh1Driver As String  'ddl

Private strVeh2Year As String
Private strVeh2Make As String
Private strVeh2Model As String
Private strVeh2Vin As String
Private strVeh2Driver As String  'ddl

Private strVeh3Year As String
Private strVeh3Make As String
Private strVeh3Model As String
Private strVeh3Vin As String
Private strVeh3Driver As String  'ddl

Private strVeh4Year As String
Private strVeh4Make As String
Private strVeh4Model As String
Private strVeh4Vin As String
Private strVeh4Driver As String  'ddl

Private strVeh1BodInjury As String 'ddl
Private strVeh2BodInjury As String 'ddl
Private strVeh3BodInjury As String 'ddl
Private strVeh4BodInjury As String 'ddl

Private strVeh1PropDamage As String 'ddl
Private strVeh2PropDamage As String 'ddl
Private strVeh3PropDamage As String 'ddl
Private strVeh4PropDamage As String 'ddl

Private strVeh1MedPayments As String 'ddl
Private strVeh2MedPayments As String 'ddl
Private strVeh3MedPayments As String 'ddl
Private strVeh4MedPayments As String 'ddl

Private strVeh1UninMotor As String 'ddl
Private strVeh2UninMotor As String 'ddl
Private strVeh3UninMotor As String 'ddl
Private strVeh4UninMotor As String 'ddl

Private strVeh1CollWaiverYN As String 'ddl
Private strVeh2CollWaiverYN As String 'ddl
Private strVeh3CollWaiverYN As String 'ddl
Private strVeh4CollWaiverYN As String 'ddl

Private strVeh1Comprehsive As String 'ddl
Private strVeh2Comprehsive As String 'ddl
Private strVeh3Comprehsive As String 'ddl
Private strVeh4Comprehsive As String 'ddl

Private strVeh1Collision As String 'ddl
Private strVeh2Collision As String 'ddl
Private strVeh3Collision As String 'ddl
Private strVeh4Collision As String 'ddl

Private strVeh1Towing As String 'ddl
Private strVeh2Towing As String 'ddl
Private strVeh3Towing As String 'ddl
Private strVeh4Towing As String 'ddl

Private strVeh1Rental As String 'ddl
Private strVeh2Rental As String 'ddl
Private strVeh3Rental As String 'ddl
Private strVeh4Rental As String 'ddl

    Sub GetValuesContactInfo(ByVal sender As Object, ByVal e As EventArgs)
        Label1.Text = _
        "<br /><br /><p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Contact Information&nbsp;&mdash;</p> " & _
        "<br /><table width=""625"" border=""0"" cellspacing=""2"" cellpadding=""2"" " & _
    "<tr><td><strong>Name:</td><td><strong>First Name</strong></td><td colspan=""3""><strong>Last Name</strong></td></tr> " & _
    "<tr><td>&nbsp;</td><td>" & txtFirstName.Text & "</td><td colspan=""3"">" & txtLastName.Text & "</td></tr> " & _
    "<tr><td><strong>Address:</td><td><strong>Street</strong></td><td><strong>City</strong></td><td><strong>State</strong></td><td><strong>Zip</strong></td></tr> " & _
    "<tr><td>&nbsp;</td><td>" & txtStreet.Text & "</td><td>" & txtCity.Text & "</td><td>" & ddlState.SelectedItem.Value & "</td><td>" & txtZip.Text & "</td></tr> " & _
    "<tr><td><strong>Phone:</strong></td><td><strong>Daytime Phone</strong></td><td colspan=""2""><strong>EMail</strong></td><td>&nbsp;</td></tr> " & _
    "<tr><td></td><td>" & txtPhoneDay.Text & "</td><td colspan=""2"">" & txtemail.Text & "</td><td align=""center"">&nbsp;</td></tr></table><br /> " & _
     "<hr noshade color=""#D2CAB8"" size=""1"" width=""92%""><br><br> " & _
     "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;List All drivers&nbsp;&mdash;</p> " & _
    "<br /><table width=""625"" border=""0"" cellspacing=""3"" cellpadding=""3""><tr><td> </td><td><strong>Name</strong></td><td><strong>Relationship</strong></td><td><strong>Birth Date</strong></td><td><strong>Years Licensed</strong></td></tr><tr><td><strong>Driver 1:</strong></td><td> " & _
    txtDrvName1.Text & "</td><td>" & ddlDrvRelationship1.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvBMonth1.SelectedItem.Value & " " & ddlDrvBDay1.SelectedItem.Value & " " & ddlDrvBYear1.SelectedItem.Value & "</td><td>" & ddlDrvYrsLicensed1.SelectedItem.Value & "</td></tr>" & _
    "<tr><td><strong>Driver 2:</strong></td><td>" & txtDrvName2.Text & "</td><td>" & ddlDrvRelationship2.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvBMonth2.SelectedItem.Value & " " & ddlDrvBDay2.SelectedItem.Value & " " & ddlDrvBYear2.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvYrsLicensed2.SelectedItem.Value & "</td></tr>" & _
    "<tr><td><strong>Driver 3:</strong></td><td>" & txtDrvName3.Text & "</td><td>" & ddlDrvRelationship3.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvBMonth3.SelectedItem.Value & " " & ddlDrvBDay3.SelectedItem.Value & " " & ddlDrvBYear3.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvYrsLicensed3.SelectedItem.Value & "</td></tr>" & _
    "<tr><td><strong>Driver 4:</strong></td><td>" & txtDrvName4.Text & "</td><td>" & ddlDrvRelationship4.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvBMonth4.SelectedItem.Value & " " & ddlDrvBDay4.SelectedItem.Value & " " & ddlDrvBYear4.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvYrsLicensed4.SelectedItem.Value & "</td></tr>" & _
    "<tr><td><strong>Driver 5:</strong></td><td>" & txtDrvName5.Text & "</td><td>" & ddlDrvRelationship5.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvBMonth5.SelectedItem.Value & " " & ddlDrvBDay5.SelectedItem.Value & " " & ddlDrvBYear5.SelectedItem.Value & "</td>" & _
    "<td>" & ddlDrvYrsLicensed5.SelectedItem.Value & "</td></tr></table><br />" & _
     "<hr noshade color=""#D2CAB8"" size=""1"" width=""92%""><br><br> " & _
     "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Tickets &amp; Accidents&nbsp;&mdash;</p> " & _
    "<br /><table width=""625"" border=""0"" cellspacing=""3"" cellpadding=""3"">" & _
    "<tr><td></td><td><strong>Ticket or Accident</strong></td><td><strong>Date of Violation/Accident</strong></td>" & _
    "<td><strong>License Suspneded?</strong></td><td><strong>Date License Reinstated</strong></td></tr><tr><td><strong>Driver 1:</strong></td>" & _
    "<td>" & ddlDrv1TicAcc.SelectedItem.Value & "</td><td>" & txtDrv1TicAccDt.Text & "</td><td>" & ddlDrv1LicSusYN.SelectedItem.Value & "</td>" & _
    "<td>" & txtDrv1LicRstDt.Text & "</td></tr><tr><td><strong>Driver 2:</strong></td><td>" & ddlDrv2TicAcc.SelectedItem.Value & "</td><td>" & txtDrv2TicAccDt.Text & "</td>" & _
    "<td>" & ddlDrv2LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv2LicRstDt.Text & "</td></tr><tr><td><strong>Driver 3:</strong></td><td>" & ddlDrv3TicAcc.SelectedItem.Value & "</td>" & _
    "<td>" & txtDrv3TicAccDt.Text & "</td><td>" & ddlDrv3LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv3LicRstDt.Text & "</td></tr><tr><td><strong>Driver 4:</strong></td>" & _
    "<td>" & ddlDrv4TicAcc.SelectedItem.Value & "</td><td>" & txtDrv4TicAccDt.Text & "</td><td>" & ddlDrv4LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv4LicRstDt.Text & "</td></tr><tr> " & _
    "<td><strong>Driver 5:</strong></td><td>" & ddlDrv5TicAcc.SelectedItem.Value & "</td><td>" & txtDrv5TicAccDt.Text & "</td><td>" & ddlDrv5LicSusYN.SelectedItem.Value & "</td> " & _
    "<td>" & txtDrv5LicRstDt.Text & "</td></tr></table><br />" & _
     "<hr noshade color=""#D2CAB8"" size=""1"" width=""92%""><br><br> " & _
     "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Vehicles&nbsp;&mdash;</p> " & _
    "<br /><table width=""625"" border=""0"" cellspacing=""3"" cellpadding=""3"">" & _
    "<tr><td></td><td><strong>Year</strong></td><td><strong>Make</strong></td>" & _
    "<td><strong>Model</strong></td><td><strong>Vin Number</strong></td>" & _
    "<td><strong>Driver #</strong></td></tr><tr><td><strong>#1</strong></td>" & _
    "<td>" & txtVeh1Year.Text & "</td><td>" & txtVeh1Make.Text & "</td><td>" & txtVeh1Model.Text & "</td>" & _
    "<td>" & txtVeh1Vin.Text & "</td><td>" & ddlVeh1Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#2</strong></td>" & _
    "<td>" & txtVeh2Year.Text & "</td><td>" & txtVeh2Make.Text & "</td><td>" & txtVeh2Model.Text & "</td>" & _
    "<td>" & txtVeh2Vin.Text & "</td><td>" & ddlVeh2Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#3</strong></td>" & _
    "<td>" & txtVeh3Year.Text & "</td><td>" & txtVeh3Make.Text & "</td><td>" & txtVeh3Model.Text & "</td><td>" & txtVeh3Vin.Text & "</td>" & _
    "<td>" & ddlVeh3Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#4</strong></td><td>" & txtVeh4Year.Text & "</td>" & _
    "<td>" & txtVeh4Make.Text & "</td><td>" & txtVeh4Model.Text & "</td><td>" & txtVeh4Vin.Text & "</td><td>" & ddlVeh4Driver.SelectedItem.Value & "</td></tr></table><br />" & _
     "<hr noshade color=""#D2CAB8"" size=""1"" width=""92%""><br><br> " & _
     "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Coverages&nbsp;&mdash;</p> " & _
    "<br /><table width=""625"" border=""0"" cellspacing=""3"" cellpadding=""3"">" & _
    "<tr><td>&nbsp;</td><td><strong>Car #1</strong></td><td><strong>Car #2</strong></td>" & _
    "<td><strong>Car #3</strong></td><td><strong>Car #4</strong></td></tr><tr>" & _
    "<td><strong>Bodily Injury:</strong></td><td>" & ddlVeh1BodInjury.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh2BodInjury.SelectedItem.Value & "</td><td>" & ddlVeh3BodInjury.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh4BodInjury.SelectedItem.Value & "</td></tr><tr><td><strong>Property Damage:</strong></td>" & _
    "<td>" & ddlVeh1PropDamage.SelectedItem.Value & "</td><td>" & ddlVeh2PropDamage.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh3PropDamage.SelectedItem.Value & "</td><td>" & ddlVeh4PropDamage.SelectedItem.Value & "</td>" & _
    "</tr><tr><td><strong>Medical Payments:</strong></td><td>" & ddlVeh1MedPayments.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh2MedPayments.SelectedItem.Value & "</td><td>" & ddlVeh3MedPayments.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh4MedPayments.SelectedItem.Value & "</td></tr><tr><td><strong>Uninsured Motorists:</strong></td>" & _
    "<td>" & ddlVeh1UninMotor.SelectedItem.Value & "</td><td>" & ddlVeh2UninMotor.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh3UninMotor.SelectedItem.Value & "</td><td>" & ddlVeh4UninMotor.SelectedItem.Value & "</td>" & _
    "</tr><tr><td><strong>Collsion Ded Waiver:</strong></td><td>" & ddlVeh1CollWaiverYN.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh2CollWaiverYN.SelectedItem.Value & "</td><td>" & ddlVeh3CollWaiverYN.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh4CollWaiverYN.SelectedItem.Value & "</td></tr><tr><td><strong>Comprehensive:</strong></td>" & _
    "<td>" & ddlVeh1Comprehsive.SelectedItem.Value & "</td><td>" & ddlVeh2Comprehsive.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh3Comprehsive.SelectedItem.Value & "</td><td>" & ddlVeh4Comprehsive.SelectedItem.Value & "</td>" & _
    "</tr><tr><td><strong>Collision:</strong></td><td>" & ddlVeh1Collision.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh2Collision.SelectedItem.Value & "</td><td>" & ddlVeh3Collision.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh4Collision.SelectedItem.Value & "</td></tr><tr><td><strong>Towing:</strong></td>" & _
    "<td>" & ddlVeh1Towing.SelectedItem.Value & "</td><td>" & ddlVeh2Towing.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh3Towing.SelectedItem.Value & "</td><td>" & ddlVeh4Towing.SelectedItem.Value & "</td>" & _
    "</tr><tr><td><strong>Rental:</strong></td><td>" & ddlVeh1Rental.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh2Rental.SelectedItem.Value & "</td><td>" & ddlVeh3Rental.SelectedItem.Value & "</td>" & _
    "<td>" & ddlVeh4Rental.SelectedItem.Value & "</td></tr></table>"
    End Sub
 
    

    Sub Page_Load()

        'If Page.IsPostBack Then

        'End If        
        
    End Sub


    Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
        
        strEmail = txtemail.Text
        strSubject = "Auto Quote Request"

        strFirstName = txtFirstName.Text
        strLastName = txtLastName.Text
        strStreet = txtStreet.Text
        strCity = txtCity.Text
        strState = ddlState.SelectedItem.Value
        strZip = txtZip.Text
        strPhoneDay = txtPhoneDay.Text

        strDrv1Name = txtDrvName1.Text
        strDrv1Relationship = ddlDrvRelationship1.SelectedItem.Value
        strDrv1BMonth = ddlDrvBMonth1.SelectedItem.Value
        strDrv1BDay = ddlDrvBDay1.SelectedItem.Value
        strDrv1BYear = ddlDrvBYear1.SelectedItem.Value
        strDrv1YrsLicensed = ddlDrvYrsLicensed1.SelectedItem.Value

        strDrv2Name = txtDrvName2.Text
        strDrv2Relationship = ddlDrvRelationship2.SelectedItem.Value
        strDrv2BMonth = ddlDrvBMonth2.SelectedItem.Value
        strDrv2BDay = ddlDrvBDay2.SelectedItem.Value
        strDrv2BYear = ddlDrvBYear2.SelectedItem.Value
        strDrv2YrsLicensed = ddlDrvYrsLicensed2.SelectedItem.Value


        strDrv3Name = txtDrvName3.Text
        strDrv3Relationship = ddlDrvRelationship3.SelectedItem.Value
        strDrv3BMonth = ddlDrvBMonth3.SelectedItem.Value
        strDrv3BDay = ddlDrvBDay3.SelectedItem.Value
        strDrv3BYear = ddlDrvBYear3.SelectedItem.Value
        strDrv3YrsLicensed = ddlDrvYrsLicensed3.SelectedItem.Value

        strDrv4Name = txtDrvName4.Text
        strDrv4Relationship = ddlDrvRelationship4.SelectedItem.Value
        strDrv4BMonth = ddlDrvBMonth4.SelectedItem.Value
        strDrv4BDay = ddlDrvBDay4.SelectedItem.Value
        strDrv4BYear = ddlDrvBYear4.SelectedItem.Value
        strDrv4YrsLicensed = ddlDrvYrsLicensed4.SelectedItem.Value

        strDrv5Name = txtDrvName5.Text
        strDrv5Relationship = ddlDrvRelationship5.SelectedItem.Value
        strDrv5BMonth = ddlDrvBMonth5.SelectedItem.Value
        strDrv5BDay = ddlDrvBDay5.SelectedItem.Value
        strDrv5BYear = ddlDrvBYear5.SelectedItem.Value
        strDrv5YrsLicensed = ddlDrvYrsLicensed5.SelectedItem.Value

        strDrv1TicAcc = ddlDrv1TicAcc.SelectedItem.Value
        strDrv1TicAccDt = txtDrv1TicAccDt.Text
        strDrv1LicSusYN = ddlDrv1LicSusYN.SelectedItem.Value
        strDrv1LicRstDt = txtDrv1LicRstDt.Text

        strDrv2TicAcc = ddlDrv2TicAcc.SelectedItem.Value
        strDrv2TicAccDt = txtDrv2TicAccDt.Text
        strDrv2LicSusYN = ddlDrv2LicSusYN.SelectedItem.Value
        strDrv2LicRstDt = txtDrv2LicRstDt.Text

        strDrv3TicAcc = ddlDrv3TicAcc.SelectedItem.Value
        strDrv3TicAccDt = txtDrv3TicAccDt.Text
        strDrv3LicSusYN = ddlDrv3LicSusYN.SelectedItem.Value
        strDrv3LicRstDt = txtDrv3LicRstDt.Text

        strDrv4TicAcc = ddlDrv4TicAcc.SelectedItem.Value
        strDrv4TicAccDt = txtDrv4TicAccDt.Text
        strDrv4LicSusYN = ddlDrv4LicSusYN.SelectedItem.Value
        strDrv4LicRstDt = txtDrv4LicRstDt.Text

        strDrv5TicAcc = ddlDrv5TicAcc.SelectedItem.Value
        strDrv5TicAccDt = txtDrv5TicAccDt.Text
        strDrv5LicSusYN = ddlDrv5LicSusYN.SelectedItem.Value
        strDrv5LicRstDt = txtDrv5LicRstDt.Text

        strVeh1Year = txtVeh1Year.Text
        strVeh1Make = txtVeh1Make.Text
        strVeh1Model = txtVeh1Model.Text
        strVeh1Vin = txtVeh1Vin.Text
        strVeh1Driver = ddlVeh1Driver.SelectedItem.Value  'ddl

        strVeh2Year = txtVeh2Year.Text
        strVeh2Make = txtVeh2Make.Text
        strVeh2Model = txtVeh2Model.Text
        strVeh2Vin = txtVeh2Vin.Text
        strVeh2Driver = ddlVeh2Driver.SelectedItem.Value  'ddl

        strVeh3Year = txtVeh3Year.Text
        strVeh3Make = txtVeh3Make.Text
        strVeh3Model = txtVeh3Model.Text
        strVeh3Vin = txtVeh3Vin.Text
        strVeh3Driver = ddlVeh3Driver.SelectedItem.Value  'ddl

        strVeh4Year = txtVeh4Year.Text
        strVeh4Make = txtVeh4Make.Text
        strVeh4Model = txtVeh4Model.Text
        strVeh4Vin = txtVeh4Vin.Text
        strVeh4Driver = ddlVeh4Driver.SelectedItem.Value  'ddl

        strVeh1BodInjury = ddlVeh1BodInjury.SelectedItem.Value 'ddl
        strVeh2BodInjury = ddlVeh2BodInjury.SelectedItem.Value 'ddl
        strVeh3BodInjury = ddlVeh3BodInjury.SelectedItem.Value 'ddl
        strVeh4BodInjury = ddlVeh4BodInjury.SelectedItem.Value 'ddl

        strVeh1PropDamage = ddlVeh1PropDamage.SelectedItem.Value 'ddl
        strVeh2PropDamage = ddlVeh2PropDamage.SelectedItem.Value 'ddl
        strVeh3PropDamage = ddlVeh3PropDamage.SelectedItem.Value 'ddl
        strVeh4PropDamage = ddlVeh4PropDamage.SelectedItem.Value 'ddl

        strVeh1MedPayments = ddlVeh1MedPayments.SelectedItem.Value 'ddl
        strVeh2MedPayments = ddlVeh2MedPayments.SelectedItem.Value 'ddl
        strVeh3MedPayments = ddlVeh3MedPayments.SelectedItem.Value 'ddl
        strVeh4MedPayments = ddlVeh4MedPayments.SelectedItem.Value 'ddl

        strVeh1UninMotor = ddlVeh1UninMotor.SelectedItem.Value 'ddl
        strVeh2UninMotor = ddlVeh2UninMotor.SelectedItem.Value 'ddl
        strVeh3UninMotor = ddlVeh3UninMotor.SelectedItem.Value 'ddl
        strVeh4UninMotor = ddlVeh4UninMotor.SelectedItem.Value 'ddl

        strVeh1CollWaiverYN = ddlVeh1CollWaiverYN.SelectedItem.Value 'ddl
        strVeh2CollWaiverYN = ddlVeh2CollWaiverYN.SelectedItem.Value 'ddl
        strVeh3CollWaiverYN = ddlVeh3CollWaiverYN.SelectedItem.Value 'ddl
        strVeh4CollWaiverYN = ddlVeh4CollWaiverYN.SelectedItem.Value 'ddl

        strVeh1Comprehsive = ddlVeh1Comprehsive.SelectedItem.Value 'ddl
        strVeh2Comprehsive = ddlVeh2Comprehsive.SelectedItem.Value 'ddl
        strVeh3Comprehsive = ddlVeh3Comprehsive.SelectedItem.Value 'ddl
        strVeh4Comprehsive = ddlVeh4Comprehsive.SelectedItem.Value 'ddl

        strVeh1Collision = ddlVeh1Collision.SelectedItem.Value 'ddl
        strVeh2Collision = ddlVeh2Collision.SelectedItem.Value 'ddl
        strVeh3Collision = ddlVeh3Collision.SelectedItem.Value 'ddl
        strVeh4Collision = ddlVeh4Collision.SelectedItem.Value 'ddl

        strVeh1Towing = ddlVeh1Towing.SelectedItem.Value 'ddl
        strVeh2Towing = ddlVeh2Towing.SelectedItem.Value 'ddl
        strVeh3Towing = ddlVeh3Towing.SelectedItem.Value 'ddl
        strVeh4Towing = ddlVeh4Towing.SelectedItem.Value 'ddl

        strVeh1Rental = ddlVeh1Rental.SelectedItem.Value 'ddl
        strVeh2Rental = ddlVeh2Rental.SelectedItem.Value 'ddl
        strVeh3Rental = ddlVeh3Rental.SelectedItem.Value 'ddl
        strVeh4Rental = ddlVeh4Rental.SelectedItem.Value 'ddl




        ' Send email when form is submitted

        Dim UpdateDate As Date
        ' Today's Date
        Dim CurDate As DateTime
        CurDate = DateTime.Now()
        UpdateDate = CurDate.ToString("g")

        ' Create the HTML Message Body
        strHTMLBody = "<html><head>" & _
        "<title>Auto Quote Request</title>" & _
        "</head><body bgcolor=#F7F6F3 style=""font-size:11px;font-family:Arial,Helvetica,sans-serif;"">" & _
         "<b>The following Auto Quote request was made on:</b> " & UpdateDate & " <br><br> " & _
         "<br /><br /><p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Contact Information&nbsp;&mdash;</p> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""2"" cellpadding=""2"" " & _
           "<tr><td><strong>Name:</td><td><strong>First Name</strong></td><td colspan=""3""><strong>Last Name</strong></td></tr> " & _
           "<tr><td>&nbsp;</td><td>" & strFirstName & "</td><td colspan=""3"">" & strLastName & "</td></tr> " & _
           "<tr><td><strong>Address:</td><td><strong>Street</strong></td><td><strong>City</strong></td><td><strong>State</strong></td><td><strong>Zip</strong></td></tr> " & _
           "<tr><td>&nbsp;</td><td>" & strStreet & "</td><td>" & strCity & "</td><td>" & strState & "</td><td>" & strZip & "</td></tr> " & _
           "<tr><td><strong>Phone:</strong></td><td><strong>Daytime Phone</strong></td><td colspan=""2""><strong>EMail</strong></td><td>&nbsp;</td></tr> " & _
           "<tr><td></td><td>" & strPhoneDay & "</td><td colspan=""2"">" & strEmail & "</td><td align=""center"">&nbsp;</td></tr></table><br /> " & _
            "<hr noshade color=""#D2CAB8"" size=""1"" width=""94%""><br><br> " & _
            "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;List All drivers&nbsp;&mdash;</p> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""4"" cellpadding=""4""><tr><td> </td><td><strong>Name</strong></td><td><strong>Relationship</strong></td><td><strong>Birth Date</strong></td><td><strong>Years Licensed</strong></td></tr><tr><td><strong>Driver 1:</strong></td><td> " & _
           txtDrvName1.Text & "</td><td>" & ddlDrvRelationship1.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvBMonth1.SelectedItem.Value & " " & ddlDrvBDay1.SelectedItem.Value & " " & ddlDrvBYear1.SelectedItem.Value & "</td><td>" & ddlDrvYrsLicensed1.SelectedItem.Value & "</td></tr>" & _
           "<tr><td><strong>Driver 2:</strong></td><td>" & txtDrvName2.Text & "</td><td>" & ddlDrvRelationship2.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvBMonth2.SelectedItem.Value & " " & ddlDrvBDay2.SelectedItem.Value & " " & ddlDrvBYear2.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvYrsLicensed2.SelectedItem.Value & "</td></tr>" & _
           "<tr><td><strong>Driver 3:</strong></td><td>" & txtDrvName3.Text & "</td><td>" & ddlDrvRelationship3.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvBMonth3.SelectedItem.Value & " " & ddlDrvBDay3.SelectedItem.Value & " " & ddlDrvBYear3.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvYrsLicensed3.SelectedItem.Value & "</td></tr>" & _
           "<tr><td><strong>Driver 4:</strong></td><td>" & txtDrvName4.Text & "</td><td>" & ddlDrvRelationship4.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvBMonth4.SelectedItem.Value & " " & ddlDrvBDay4.SelectedItem.Value & " " & ddlDrvBYear4.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvYrsLicensed4.SelectedItem.Value & "</td></tr>" & _
           "<tr><td><strong>Driver 5:</strong></td><td>" & txtDrvName5.Text & "</td><td>" & ddlDrvRelationship5.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvBMonth5.SelectedItem.Value & " " & ddlDrvBDay5.SelectedItem.Value & " " & ddlDrvBYear5.SelectedItem.Value & "</td>" & _
           "<td>" & ddlDrvYrsLicensed5.SelectedItem.Value & "</td></tr></table><br />" & _
            "<hr noshade color=""#D2CAB8"" size=""1"" width=""94%""><br><br> " & _
            "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Tickets &amp; Accidents&nbsp;&mdash;</p> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""4"" cellpadding=""4"">" & _
           "<tr><td></td><td><strong>Ticket or Accident</strong></td><td><strong>Date of Violation/Accident</strong></td>" & _
           "<td><strong>License Suspneded?</strong></td><td><strong>Date License Reinstated</strong></td></tr><tr><td><strong>Driver 1:</strong></td>" & _
           "<td>" & ddlDrv1TicAcc.SelectedItem.Value & "</td><td>" & txtDrv1TicAccDt.Text & "</td><td>" & ddlDrv1LicSusYN.SelectedItem.Value & "</td>" & _
           "<td>" & txtDrv1LicRstDt.Text & "</td></tr><tr><td><strong>Driver 2:</strong></td><td>" & ddlDrv2TicAcc.SelectedItem.Value & "</td><td>" & txtDrv2TicAccDt.Text & "</td>" & _
           "<td>" & ddlDrv2LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv2LicRstDt.Text & "</td></tr><tr><td><strong>Driver 3:</strong></td><td>" & ddlDrv3TicAcc.SelectedItem.Value & "</td>" & _
           "<td>" & txtDrv3TicAccDt.Text & "</td><td>" & ddlDrv3LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv3LicRstDt.Text & "</td></tr><tr><td><strong>Driver 4:</strong></td>" & _
           "<td>" & ddlDrv4TicAcc.SelectedItem.Value & "</td><td>" & txtDrv4TicAccDt.Text & "</td><td>" & ddlDrv4LicSusYN.SelectedItem.Value & "</td><td>" & txtDrv4LicRstDt.Text & "</td></tr><tr> " & _
           "<td><strong>Driver 5:</strong></td><td>" & ddlDrv5TicAcc.SelectedItem.Value & "</td><td>" & txtDrv5TicAccDt.Text & "</td><td>" & ddlDrv5LicSusYN.SelectedItem.Value & "</td> " & _
           "<td>" & txtDrv5LicRstDt.Text & "</td></tr></table><br />" & _
            "<hr noshade color=""#D2CAB8"" size=""1"" width=""94%""><br><br> " & _
            "<p style=""text-align:center;font-size:14px;font-weight:bold;""><b>&mdash;&nbsp;Vehicles&nbsp;&mdash;</b></p> " & _
           "<br /><br /><table width=""700"" border=""0"" cellspacing=""4"" cellpadding=""4"">" & _
           "<tr><td></td><td><strong>Year</strong></td><td><strong>Make</strong></td>" & _
           "<td><strong>Model</strong></td><td><strong>Vin Number</strong></td>" & _
           "<td><strong>Driver #</strong></td></tr><tr><td><strong>#1</strong></td>" & _
           "<td>" & txtVeh1Year.Text & "</td><td>" & txtVeh1Make.Text & "</td><td>" & txtVeh1Model.Text & "</td>" & _
           "<td>" & txtVeh1Vin.Text & "</td><td>" & ddlVeh1Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#2</strong></td>" & _
           "<td>" & txtVeh2Year.Text & "</td><td>" & txtVeh2Make.Text & "</td><td>" & txtVeh2Model.Text & "</td>" & _
           "<td>" & txtVeh2Vin.Text & "</td><td>" & ddlVeh2Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#3</strong></td>" & _
           "<td>" & txtVeh3Year.Text & "</td><td>" & txtVeh3Make.Text & "</td><td>" & txtVeh3Model.Text & "</td><td>" & txtVeh3Vin.Text & "</td>" & _
           "<td>" & ddlVeh3Driver.SelectedItem.Value & "</td></tr><tr><td><strong>#4</strong></td><td>" & txtVeh4Year.Text & "</td>" & _
           "<td>" & txtVeh4Make.Text & "</td><td>" & txtVeh4Model.Text & "</td><td>" & txtVeh4Vin.Text & "</td><td>" & ddlVeh4Driver.SelectedItem.Value & "</td></tr></table><br />" & _
            "<hr noshade color=""#D2CAB8"" size=""1"" width=""94%""><br><br> " & _
            "<p style=""text-align:center;font-size:14px;font-weight:bold;"">&mdash;&nbsp;Coverages&nbsp;&mdash;</p> " & _
           "<table width=""700"" border=""0"" cellspacing=""4"" cellpadding=""4"">" & _
           "<tr><td>&nbsp;</td><td><strong>Car #1</strong></td><td><strong>Car #2</strong></td>" & _
           "<td><strong>Car #3</strong></td><td><strong>Car #4</strong></td></tr><tr>" & _
           "<td><strong>Bodily Injury:</strong></td><td>" & ddlVeh1BodInjury.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh2BodInjury.SelectedItem.Value & "</td><td>" & ddlVeh3BodInjury.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh4BodInjury.SelectedItem.Value & "</td></tr><tr><td><strong>Property Damage:</strong></td>" & _
           "<td>" & ddlVeh1PropDamage.SelectedItem.Value & "</td><td>" & ddlVeh2PropDamage.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh3PropDamage.SelectedItem.Value & "</td><td>" & ddlVeh4PropDamage.SelectedItem.Value & "</td>" & _
           "</tr><tr><td><strong>Medical Payments:</strong></td><td>" & ddlVeh1MedPayments.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh2MedPayments.SelectedItem.Value & "</td><td>" & ddlVeh3MedPayments.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh4MedPayments.SelectedItem.Value & "</td></tr><tr><td><strong>Uninsured Motorists:</strong></td>" & _
           "<td>" & ddlVeh1UninMotor.SelectedItem.Value & "</td><td>" & ddlVeh2UninMotor.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh3UninMotor.SelectedItem.Value & "</td><td>" & ddlVeh4UninMotor.SelectedItem.Value & "</td>" & _
           "</tr><tr><td><strong>Collsion Ded Waiver:</strong></td><td>" & ddlVeh1CollWaiverYN.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh2CollWaiverYN.SelectedItem.Value & "</td><td>" & ddlVeh3CollWaiverYN.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh4CollWaiverYN.SelectedItem.Value & "</td></tr><tr><td><strong>Comprehensive:</strong></td>" & _
           "<td>" & ddlVeh1Comprehsive.SelectedItem.Value & "</td><td>" & ddlVeh2Comprehsive.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh3Comprehsive.SelectedItem.Value & "</td><td>" & ddlVeh4Comprehsive.SelectedItem.Value & "</td>" & _
           "</tr><tr><td><strong>Collision:</strong></td><td>" & ddlVeh1Collision.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh2Collision.SelectedItem.Value & "</td><td>" & ddlVeh3Collision.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh4Collision.SelectedItem.Value & "</td></tr><tr><td><strong>Towing:</strong></td>" & _
           "<td>" & ddlVeh1Towing.SelectedItem.Value & "</td><td>" & ddlVeh2Towing.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh3Towing.SelectedItem.Value & "</td><td>" & ddlVeh4Towing.SelectedItem.Value & "</td>" & _
           "</tr><tr><td><strong>Rental:</strong></td><td>" & ddlVeh1Rental.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh2Rental.SelectedItem.Value & "</td><td>" & ddlVeh3Rental.SelectedItem.Value & "</td>" & _
           "<td>" & ddlVeh4Rental.SelectedItem.Value & "</td></tr></table>" & _
        "</font></body></html>"

               
        Dim Mail As New MailMessage()
        
        Mail.From = New MailAddress("QuoteRequests@nowhere.com")
        Mail.To.Add(strEmail)
        
        Mail.To.Add(New MailAddress(strEmail))
        Mail.Bcc.Add(New MailAddress("JohnDoe@NoWhere.com", "John Doe"))
        
 
        'set the content
        Mail.Subject = strSubject
        Mail.Body = strHTMLBody
        Mail.IsBodyHtml = True
        
        'send the message
        Dim smtp As New SmtpClient("127.0.0.1")
        smtp.Send(Mail)
		
		
		
        ' ###########   Send email to requester form is submitted #########
		
        Dim UpdateDate2 As Date

        ' Today's Date
        Dim CurDate2 As DateTime
        CurDate2 = DateTime.Now()
        UpdateDate2 = CurDate2.ToString("g")

        ' Create the HTML Message Body
        strHTMLBody = "<html><head>" & _
          "<title>Insurance Auto Quote Request</title>" & _
          "</head><body bgcolor=""#ffffff"">" & _
          "<font face=Verdana size=2>" & _
          "<b>Your Insurance " & strSubject & " request was received:</b> " & UpdateDate2 & " <br><br> " & _
          "<hr noshade color=""#808080"" size=""1"" width=""90%"" align=""left""><br> " & _
    "<b>Requester: </b> " & strFirstName & " " & strLastName & "<br><br> " & _
    "<b>Subject: </b> " & strSubject & "<br><br> " & _
    "<b>Email: </b> " & strEmail & "<br><br> " & _
    "<b>Requester Phone: </b> " & strPhoneDay & "<br><br> " & _
    "You will receive a response to your inquiry within 1 business day.<br><br><br>" & _
    "<b>Thank you your interest in NoWhere.com. Please feel free to contact us at any time!</b></br></br></br></font>" & _
           "<hr noshade color=""#808080"" size=""1"" width=""90%"" align=""left""> " & _
      "<table width=""555"" border=0 cellpadding=0 cellspacing=0><tr>" & _
   "<td valign=""middle"" width=""105"" align=""left""><a href=""http://NoWhere.com/""><img src=""http://Nowhere.com/images/URLogo_EmailSig1.png"" alt=""""  border=""0"" width=""97"" height=""80"" vspace=""2""></a><br></td>" & _
   "<td width=""450"" align=""left"" valign=""middle""><table width=""100%""  border=""0"" cellpadding=""0"" cellspacing=""0""><tr> " & _
   "<td valign=""bottom""><span style=""font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;Color:#333;font-weight:bold;"">NoWhere.com</span></td></tr><tr>" & _
   "<td  valign=""bottom""><span style=""font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;Color:#666;"">30101 Agoura Ct. &bull; Agoura Hills, CA 91301</span></td></tr><tr>" & _
    "<td  valign=""bottom""> <span style=""font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;Color:#666;"">Phone: (800) 840-7919 </span></td></tr></table></td></tr></table>" & _
      "</body></html>"

        Dim mail2 As New MailMessage()
        'set the addresses
        mail2.From = New MailAddress("QuoteRequests@NoWhere.com")
        mail2.To.Add(New MailAddress("JohnDoe@nowhere.com", "John Doe"))
        mail2.Bcc.Add(New MailAddress("JaneDoe@nowhere.com", "Jane Doe"))
        
        'set the content
        mail2.Subject = strSubject
        mail2.Body = strHTMLBody
        mail2.IsBodyHtml = True
        
        'send the message
        Dim smtp2 As New SmtpClient("127.0.0.1")
        smtp2.Send(mail2)
			
    End Sub
    
    
    
   
    
       
    
    
    'BodInjury
    
    Protected Sub ddlVeh1BodInjury_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlVeh1BodInjury.SelectedIndexChanged
        Dim ddlVeh1BodInjury As DropDownList = DirectCast(sender, DropDownList)
        Dim value As String = ddlVeh1BodInjury.SelectedValue

        SetValueBodInjury(ddlVeh2BodInjury, value)
        SetValueBodInjury(ddlVeh3BodInjury, value)
        SetValueBodInjury(ddlVeh4BodInjury, value)
    End Sub

    Protected Sub SetValueBodInjury(ByVal ddlVeh1BodInjury As DropDownList, ByVal value As String)
        ddlVeh1BodInjury.SelectedIndex = ddlVeh1BodInjury.Items.IndexOf(ddlVeh1BodInjury.Items.FindByValue(value))
    End Sub
    
    'PropDamage
    
    Protected Sub ddlVeh1PropDamage_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlVeh1PropDamage.SelectedIndexChanged
        Dim ddlVeh1PropDamage As DropDownList = DirectCast(sender, DropDownList)
        Dim value As String = ddlVeh1PropDamage.SelectedValue

        SetValuePropDamage(ddlVeh2PropDamage, value)
        SetValuePropDamage(ddlVeh3PropDamage, value)
        SetValuePropDamage(ddlVeh4PropDamage, value)
    End Sub

    Protected Sub SetValuePropDamage(ByVal ddlVeh1PropDamage As DropDownList, ByVal value As String)
        ddlVeh1PropDamage.SelectedIndex = ddlVeh1PropDamage.Items.IndexOf(ddlVeh1PropDamage.Items.FindByValue(value))
    End Sub
    
    'MedPayments
    
    Protected Sub ddlVeh1MedPayments_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlVeh1MedPayments.SelectedIndexChanged
        Dim ddlVeh1MedPayments As DropDownList = DirectCast(sender, DropDownList)
        Dim value As String = ddlVeh1MedPayments.SelectedValue

        SetValueMedPayments(ddlVeh2MedPayments, value)
        SetValueMedPayments(ddlVeh3MedPayments, value)
        SetValueMedPayments(ddlVeh4MedPayments, value)
    End Sub

    Protected Sub SetValueMedPayments(ByVal ddlVeh1MedPayments As DropDownList, ByVal value As String)
        ddlVeh1MedPayments.SelectedIndex = ddlVeh1MedPayments.Items.IndexOf(ddlVeh1MedPayments.Items.FindByValue(value))
    End Sub
    
        
    'ddlVeh1UninMotor
    
    Protected Sub ddlVeh1UninMotor_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlVeh1UninMotor.SelectedIndexChanged
        Dim ddlVeh1UninMotor As DropDownList = DirectCast(sender, DropDownList)
        Dim value As String = ddlVeh1UninMotor.SelectedValue

        SetValueUninMotor(ddlVeh2UninMotor, value)
        SetValueUninMotor(ddlVeh3UninMotor, value)
        SetValueUninMotor(ddlVeh4UninMotor, value)
    End Sub

    Protected Sub SetValueUninMotor(ByVal ddlVeh1UninMotor As DropDownList, ByVal value As String)
        ddlVeh1UninMotor.SelectedIndex = ddlVeh1UninMotor.Items.IndexOf(ddlVeh1UninMotor.Items.FindByValue(value))
    End Sub
    
    
    'ddlVeh1CollWaiverYN
    
    Protected Sub ddlVeh1CollWaiverYN_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlVeh1CollWaiverYN.SelectedIndexChanged
        Dim ddlVeh1CollWaiverYN As DropDownList = DirectCast(sender, DropDownList)
        Dim value As String = ddlVeh1CollWaiverYN.SelectedValue

        SetValueCollWaiverYN(ddlVeh2CollWaiverYN, value)
        SetValueCollWaiverYN(ddlVeh3CollWaiverYN, value)
        SetValueCollWaiverYN(ddlVeh4CollWaiverYN, value)
    End Sub

    Protected Sub SetValueCollWaiverYN(ByVal ddlVeh1CollWaiverYN As DropDownList, ByVal value As String)
        ddlVeh1CollWaiverYN.SelectedIndex = ddlVeh1CollWaiverYN.Items.IndexOf(ddlVeh1CollWaiverYN.Items.FindByValue(value))
    End Sub
    
  
</Script>



<!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 id="Head1" runat="server" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Auto Quote Request</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="common/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="common/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>


 <script type="text/javascript" language="javascript">

    function onUpdating(){
        // get the update progress div
        var updateProgressDiv = $get('updateProgressDiv'); 
        // make it visible
        updateProgressDiv.style.display = '';

        //  get the wizard element        
        var wizard = $get('<%= wizard1.ClientID %>');
        
        // get the bounds of both the wizard and the progress div
        var wizardBounds = Sys.UI.DomElement.getBounds(wizard);
        var updateProgressDivBounds = Sys.UI.DomElement.getBounds(updateProgressDiv);
        
        //	do the math to figure out where to position the element (the center of the gridview)
        var x = wizardBounds.x + Math.round(wizardBounds.width / 2) - Math.round(updateProgressDivBounds.width / 2);
        var y = wizardBounds.y + Math.round(wizardBounds.height / 2) - Math.round(updateProgressDivBounds.height / 2);
        
        //	set the progress element to this position
        Sys.UI.DomElement.setLocation (updateProgressDiv, x, y);        
    }

    function onUpdated() {
        // get the update progress div
        var updateProgressDiv = $get('updateProgressDiv'); 
        // make it invisible
        updateProgressDiv.style.display = 'none';
    }

    </script>    
    
    
<script type="text/javascript" language="javascript">

		function ValidateValues(oSrc, args)
		{

			var ErrorMessage = '';
			var ControlToFocus;
			var isValid = true;
			$('[id~="txtDrvName"]').each(function()
			{
				if (this.value != '')
				{
					// get all the dropdown or other controls in this manner
					ddlDrvRelationship = this.id.replace("txtDrvName", "ddlDrvRelationship");
					if ($("#" + ddlDrvRelationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Relationship not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBMonth = this.id.replace("txtDrvName", "ddlDrvBMonth");
					if ($("#" + ddlDrvBMonth).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Month not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBDay = this.id.replace("txtDrvName", "ddlDrvBDay");
					if ($("#" + ddlDrvBDay).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Day not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBYear = this.id.replace("txtDrvName", "ddlDrvBYear");
					if ($("#" + ddlDrvRelationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Year not specified for Driver: " + this.value + "<br/>";
					}
				}
			});

			oSrc.innerHTML = ErrorMessage;

			if (!isValid)
			{
				while (ErrorMessage.indexOf("<br/>") > -1)
					ErrorMessage = ErrorMessage.replace("<br/>", "\n");
				oSrc.setAttribute("errormessage", ErrorMessage);
				//alert(ErrorMessage);
			}

			args.IsValid = isValid;
		}


	</script>


</head>

<body style="background:url(images/body-bg2.gif) top left repeat-x #fef6e5;">
<div id="container">
<div class="header-regpage">


<!-- ####### START HEADER ####### -->
<URCtrls:Header id="TopNav" runat="server" />
<!-- ####### END HEADER MENU ####### -->

<div class="clear"></div>
</div>
<div class="content-box">
<div class="quote-main floatl">
<div class="quotemain-content">
<h1>Auto Quote Request</h1>
<div style="padding:10px 0 10px 0">

  
     <div style="line-height:19px;font-family:Arial, Helvetica, sans-serif; font-size:13px;color:#3D1804; margin-left:0px;" >
<form runat="server" name="quoteform">

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>



 <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
     <ContentTemplate>  
 <!-- Section #1 OnNextButtonClick="Wizard1_NextButtonClick"  OnActiveStepChanged="GetValuesContactInfo"-->
 
  <asp:Wizard ID="Wizard1" Width="872" BackColor="#E6E2D8" 
             HeaderText="Auto Insurance Quotation Information Worksheet" runat="server" 
             BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="2" 
             CellSpacing="4" OnActiveStepChanged="GetValuesContactInfo" 
             onfinishbuttonclick="Wizard1_FinishButtonClick" CssClass="wizardsidestep" 
             HeaderStyle-Height="35px"  >        
        
            <WizardSteps>
 
 
 
  <asp:WizardStep ID="WizardStep1" runat="server" StepType="Start" Title="Start worksheet">
            
           <p> To insure that we provide you with an accurate auto quotation, please gather all necessary documentation so that you can provide us with current information on drivers, tickets and accidents, your vehicles, and the coverages you require.</p><br />
<p> While a vin # is not required, manufacturers often make many sub models. If we select the wrong sub model our quotation will only be an approximation until the correct sub model has been determined with a vin number.</p><br />
            
            <p>We will respond to your auto quote request with in two business days.</p><br />

            <p>Please click <strong>Next</strong> to proceed.</p><br /><br />

            
            </asp:WizardStep>
 
 
 
  <asp:WizardStep ID="WizardStep2" runat="server" StepType="Step" Title="Step 1: Your contact info">
               
 
 <br />
<h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;Your Contact Information&nbsp;&mdash;</strong></h3><br />

 

 
 
 <table width="600" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td><strong>Name<span style="font-size:small;">*</span></strong>:</td>
      <td><strong>First Name</strong></td>
      <td colspan="3"><strong>Last Name</strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtFirstName" MaxLength="50" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valFirstName" runat="server" ErrorMessage="Please enter first name"  ControlToValidate="txtFirstName" Display="Dynamic" ValidationGroup="AutoQuote" />
      </td>
      <td colspan="3"><asp:TextBox ID="txtLastName" MaxLength="75" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valLastName" runat="server" ErrorMessage="Please enter last name"  ControlToValidate="txtLastName" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
    </tr>
    <tr>
      <td><strong>Address<span style="font-size:small;">*</span></strong>:</td>
      <td><strong>Street</strong></td>
      <td><strong>City</strong></td>
      <td><strong>State</strong></td>
      <td><strong></strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtStreet" MaxLength="75" TextMode="SingleLine" runat="server" />
      <br /><asp:RequiredFieldValidator ID="valStreet" runat="server" ErrorMessage="Please enter street address"  ControlToValidate="txtStreet" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td><asp:TextBox ID="txtCity" MaxLength="75" runat="server" />&nbsp;&nbsp;
      <br /><asp:RequiredFieldValidator ID="valCity" runat="server" ErrorMessage="Please enter city"  ControlToValidate="txtCity" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td><asp:DropDownList ID="ddlState" runat="server">
                                  <asp:ListItem Value="">-- Select a State --</asp:ListItem>
                                  <asp:ListItem Value="Alabama">Alabama</asp:ListItem>
                                  <asp:ListItem Value="Alaska">Alaska</asp:ListItem>
                                  <asp:ListItem Value="Arizona">Arizona</asp:ListItem>
                                  <asp:ListItem Value="Arkansas">Arkansas</asp:ListItem>
                                  <asp:ListItem Value="California">California</asp:ListItem>
                                  <asp:ListItem Value="Colorado">Colorado</asp:ListItem>
                                  <asp:ListItem Value="Connecticut">Connecticut</asp:ListItem>
                                  <asp:ListItem Value="Delaware">Delaware</asp:ListItem>
                                  <asp:ListItem Value="DC">DC</asp:ListItem>
                                  <asp:ListItem Value="Colorado">Colorado</asp:ListItem>
                                  <asp:ListItem Value="Florida">Florida</asp:ListItem>
                                  <asp:ListItem Value="Georgia">Georgia</asp:ListItem>
                                  <asp:ListItem Value="Hawaii">Hawaii</asp:ListItem>
                                  <asp:ListItem Value="Idaho">Idaho</asp:ListItem>
                                  <asp:ListItem Value="Illinois">Illinois</asp:ListItem>
                                  <asp:ListItem Value="Indiana">Indiana</asp:ListItem>
                                  <asp:ListItem Value="Iowa">Iowa</asp:ListItem>
                                  <asp:ListItem Value="Kansas">Kansas</asp:ListItem>
                                  <asp:ListItem Value="Kentucky">Kentucky</asp:ListItem>
                                  <asp:ListItem Value="Louisiana">Louisiana</asp:ListItem>
                                  <asp:ListItem Value="Maine">Maine</asp:ListItem>
                                  <asp:ListItem Value="Maryland">Maryland</asp:ListItem>
                                  <asp:ListItem Value="Massachusetts">Massachusetts</asp:ListItem>
                                  <asp:ListItem Value="Michigan">Michigan</asp:ListItem>
                                  <asp:ListItem Value="Minnesota">Minnesota</asp:ListItem>
                                  <asp:ListItem Value="Mississippi">Mississippi</asp:ListItem>
                                  <asp:ListItem Value="Missouri">Missouri</asp:ListItem>
                                  <asp:ListItem Value="Montana">Montana</asp:ListItem>
                                  <asp:ListItem Value="Nebraska">Nebraska</asp:ListItem>
                                  <asp:ListItem Value="Nevada">Nevada</asp:ListItem>
                                  <asp:ListItem Value="New Hampshire">New Hampshire</asp:ListItem>
                                  <asp:ListItem Value="New Jersey">New Jersey</asp:ListItem>
                                  <asp:ListItem Value="New York">New York</asp:ListItem>
                                  <asp:ListItem Value="North Carolina">North Carolina</asp:ListItem>
                                  <asp:ListItem Value="North Dakota">North Dakota</asp:ListItem>
                                  <asp:ListItem Value="Ohio">Ohio</asp:ListItem>
                                  <asp:ListItem Value="Oklahoma">Oklahoma</asp:ListItem>
                                  <asp:ListItem Value="Oregon">Oregon</asp:ListItem>
                                  <asp:ListItem Value="Pennsylvania">Pennsylvania</asp:ListItem>
                                  <asp:ListItem Value="Oregon">Oregon</asp:ListItem>
                                  <asp:ListItem Value="Rhode Island">Rhode Island</asp:ListItem>
                                  <asp:ListItem Value="South Carolina">South Carolina</asp:ListItem>
                                  <asp:ListItem Value="South Dakota">South Dakota</asp:ListItem>
                                  <asp:ListItem Value="Tennessee">Tennessee</asp:ListItem>
                                  <asp:ListItem Value="Texas">Texas</asp:ListItem>
                                  <asp:ListItem Value="Utah">Utah</asp:ListItem>
                                  <asp:ListItem Value="Vermont">Vermont</asp:ListItem>
                                  <asp:ListItem Value="Virginia">Virginia</asp:ListItem>
                                  <asp:ListItem Value="Washington">Washington</asp:ListItem>
                                  <asp:ListItem Value="West Virginia">West Virginia</asp:ListItem>
                                  <asp:ListItem Value="Wisconsin">Wisconsin</asp:ListItem>
                                  <asp:ListItem Value="Wyoming">Wyoming</asp:ListItem>
      </asp:DropDownList >
      <br />
      
      <asp:RequiredFieldValidator ID="valState" runat="server" ErrorMessage="Please enter state"  ControlToValidate="ddlState" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td>
      
      </td>
    </tr>
    <tr>
      <td> <strong>Phone<span style="font-size:small;">*</span>:</strong></td>
      <td><strong>Daytime Phone</strong></td>
      <td ><strong>EMail</strong></td>
      <td><strong>Zip</strong></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><asp:TextBox ID="txtPhoneDay" MaxLength="25" TextMode="SingleLine" runat="server" /><br />
       <asp:RequiredFieldValidator ID="valPhoneDay" runat="server" ErrorMessage="Please enter zip code"  ControlToValidate="txtPhoneDay" Display="Dynamic" ValidationGroup="AutoQuote" />
      
      </td>
      <td ><asp:TextBox ID="txtemail" runat="server"  /><br />
      
      <asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Please enter email address"  ControlToValidate="txtemail" Display="Dynamic" ValidationGroup="AutoQuote" />
      <asp:RegularExpressionValidator ID="valEmailValid" runat="server" ErrorMessage="Please enter a valid email address" ControlToValidate="txtemail" Display="Dynamic"  ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
      
      
      </td>
      <td align="left"><asp:TextBox ID="txtZip" MaxLength="11" runat="server" /><br />
       <asp:RequiredFieldValidator ID="valZip" runat="server" ErrorMessage="Please enter zip code"  ControlToValidate="txtZip" Display="Dynamic" ValidationGroup="AutoQuote" /></td>
    </tr>
  </table>
 <br /><br />
 <p><span style="font-size:large;">*</span><i>All fields on this screen are required</i></p>
 
<br /><br /><br />
 
  </asp:WizardStep>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <asp:WizardStep ID="WizardStep3" runat="server" StepType="Step" Title="Step 2: List All Drivers">
  
 
 <h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;List All Drivers&nbsp;&mdash;</strong></h3><br />
 
 
<div style="margin:0px 0px 10px 18px;">

<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
							HeaderText="<u>Please Complete the Following Fields:</u>" ValidationGroup="AutoQuote" />

<asp:TextBox ID="TextBox1" runat="server" Width="75px" Style="display: none"></asp:TextBox>

<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic"
Text="Validation Error" ValidateEmptyText="true" ValidationGroup="AutoQuote"></asp:CustomValidator>
 




 
 <!--- HeaderText="<u>Please Complete the Following Fields:</u>"  Section #2 -->
 <table width="600" border="0" cellspacing="3" cellpadding="3">
    <tr>
      <td>&nbsp;</td>
      <td><strong>Name</strong></td>
      <td><strong>Relationship</strong></td>
      <td><strong>Birth Date</strong></td>
      <td><strong>Years Licensed</strong></td>
    </tr>
    <tr>
      <td><strong>Driver 1:</strong></td>
      <td>
      
   <asp:TextBox ID="txtDrvName1" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
	
  <asp:RequiredFieldValidator ID="valDrv1Name" runat="server" ErrorMessage="Driver #1 Name" ControlToValidate="txtDrvName1" Display="none" ValidationGroup="AutoQuote" />
      
            
      </td>
      <td>
      <asp:DropDownList ID="ddlDrvRelationship1" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>     
       </td>
      <td>
<asp:DropDownList ID="ddlDrvBMonth1" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList> 
 &nbsp;     
<asp:DropDownList ID="ddlDrvBDay1" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 <asp:ListItem Value="12">12</asp:ListItem>
 <asp:ListItem Value="13">13</asp:ListItem>
 <asp:ListItem Value="14">14</asp:ListItem>
 <asp:ListItem Value="15">15</asp:ListItem>
 <asp:ListItem Value="16">16</asp:ListItem>
 <asp:ListItem Value="17">17</asp:ListItem>
 <asp:ListItem Value="18">18</asp:ListItem>
 <asp:ListItem Value="19">19</asp:ListItem>
 <asp:ListItem Value="20">20</asp:ListItem>
 <asp:ListItem Value="21">21</asp:ListItem>
 <asp:ListItem Value="22">22</asp:ListItem>
 <asp:ListItem Value="23">23</asp:ListItem>
 <asp:ListItem Value="24">24</asp:ListItem>
 <asp:ListItem Value="25">25</asp:ListItem>
 <asp:ListItem Value="26">26</asp:ListItem>
 <asp:ListItem Value="27">27</asp:ListItem>
 <asp:ListItem Value="28">28</asp:ListItem>
 <asp:ListItem Value="29">29</asp:ListItem>
 <asp:ListItem Value="30">30</asp:ListItem>
 <asp:ListItem Value="31">31</asp:ListItem>
 </asp:DropDownList>
      &nbsp;
<asp:DropDownList ID="ddlDrvBYear1" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
<asp:ListItem value="1931">1931</asp:ListItem>
<asp:ListItem value="1932">1932</asp:ListItem>
<asp:ListItem value="1933">1933</asp:ListItem>
<asp:ListItem value="1934">1934</asp:ListItem>
<asp:ListItem value="1935">1935</asp:ListItem>
<asp:ListItem value="1936">1936</asp:ListItem>
<asp:ListItem value="1937">1937</asp:ListItem>
<asp:ListItem value="1938">1938</asp:ListItem>
<asp:ListItem value="1939">1939</asp:ListItem>
<asp:ListItem value="1940">1940</asp:ListItem>
<asp:ListItem value="1941">1941</asp:ListItem>
<asp:ListItem value="1942">1942</asp:ListItem>
<asp:ListItem value="1943">1943</asp:ListItem>
<asp:ListItem value="1944">1944</asp:ListItem>
<asp:ListItem value="1945">1945</asp:ListItem>
<asp:ListItem value="1946">1946</asp:ListItem>
<asp:ListItem value="1947">1947</asp:ListItem>
<asp:ListItem value="1948">1948</asp:ListItem>
<asp:ListItem value="1949">1949</asp:ListItem>
<asp:ListItem value="1950">1950</asp:ListItem>
<asp:ListItem value="1951">1951</asp:ListItem>
<asp:ListItem value="1952">1952</asp:ListItem>
<asp:ListItem value="1953">1953</asp:ListItem>
<asp:ListItem value="1954">1954</asp:ListItem>
<asp:ListItem value="1955">1955</asp:ListItem>
<asp:ListItem value="1956">1956</asp:ListItem>
<asp:ListItem value="1957">1957</asp:ListItem>
<asp:ListItem value="1958">1958</asp:ListItem>
<asp:ListItem value="1959">1959</asp:ListItem>
<asp:ListItem value="1960">1960</asp:ListItem>
<asp:ListItem value="1961">1961</asp:ListItem>
<asp:ListItem value="1962">1962</asp:ListItem>
<asp:ListItem value="1963">1963</asp:ListItem>
<asp:ListItem value="1964">1964</asp:ListItem>
<asp:ListItem value="1965">1965</asp:ListItem>
<asp:ListItem value="1966">1966</asp:ListItem>
<asp:ListItem value="1967">1967</asp:ListItem>
<asp:ListItem value="1968">1968</asp:ListItem>
<asp:ListItem value="1969">1969</asp:ListItem>
<asp:ListItem value="1970">1970</asp:ListItem>
<asp:ListItem value="1971">1971</asp:ListItem>
<asp:ListItem value="1972">1972</asp:ListItem>
<asp:ListItem value="1973">1973</asp:ListItem>
<asp:ListItem value="1974">1974</asp:ListItem>
<asp:ListItem value="1975">1975</asp:ListItem>
<asp:ListItem value="1976">1976</asp:ListItem>
<asp:ListItem value="1977">1977</asp:ListItem>
<asp:ListItem value="1978">1978</asp:ListItem>
<asp:ListItem value="1979">1979</asp:ListItem>
<asp:ListItem value="1980">1980</asp:ListItem>
<asp:ListItem value="1981">1981</asp:ListItem>
<asp:ListItem value="1982">1982</asp:ListItem>
<asp:ListItem value="1983">1983</asp:ListItem>
<asp:ListItem value="1984">1984</asp:ListItem>
<asp:ListItem value="1985">1985</asp:ListItem>
<asp:ListItem value="1986">1986</asp:ListItem>
<asp:ListItem value="1987">1987</asp:ListItem>
<asp:ListItem value="1988">1988</asp:ListItem>
<asp:ListItem value="1989">1989</asp:ListItem>
<asp:ListItem value="1990">1990</asp:ListItem>
<asp:ListItem value="1991">1991</asp:ListItem>
<asp:ListItem value="1992">1992</asp:ListItem>
<asp:ListItem value="1993">1993</asp:ListItem>
<asp:ListItem value="1994">1994</asp:ListItem>
<asp:ListItem value="1995">1995</asp:ListItem> 
<asp:ListItem value="1996">1996</asp:ListItem>
<asp:ListItem value="1997">1997</asp:ListItem>
<asp:ListItem value="1998">1998</asp:ListItem>
<asp:ListItem value="1999">1999</asp:ListItem>
<asp:ListItem value="2000">2000</asp:ListItem>
</asp:DropDownList>      
</td>
      <td><asp:DropDownList ID="ddlDrvYrsLicensed1" runat="server">
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>1</asp:ListItem>
      <asp:ListItem>2</asp:ListItem>
      <asp:ListItem>3-5</asp:ListItem>
      <asp:ListItem>5-8</asp:ListItem>
      <asp:ListItem>10-14</asp:ListItem>
      <asp:ListItem>15-50</asp:ListItem>
      <asp:ListItem>Over 50</asp:ListItem>      
      </asp:DropDownList>
  </td>
    </tr>
    <tr>
      <td><strong>Driver 2:</strong></td>
      <td><asp:TextBox ID="txtDrvName2" MaxLength="75" TextMode="SingleLine" runat="server"  Width="95" />
      
      
      
      
      
      </td>
      <td>
      <asp:DropDownList ID="ddlDrvRelationship2" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      
      
      
      
      
      </td>
      <td><asp:DropDownList ID="ddlDrvBMonth2" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>

      

      
      &nbsp;
<asp:DropDownList ID="ddlDrvBDay2" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 <asp:ListItem Value="12">12</asp:ListItem>
 <asp:ListItem Value="13">13</asp:ListItem>
 <asp:ListItem Value="14">14</asp:ListItem>
 <asp:ListItem Value="15">15</asp:ListItem>
 <asp:ListItem Value="16">16</asp:ListItem>
 <asp:ListItem Value="17">17</asp:ListItem>
 <asp:ListItem Value="18">18</asp:ListItem>
 <asp:ListItem Value="19">19</asp:ListItem>
 <asp:ListItem Value="20">20</asp:ListItem>
 <asp:ListItem Value="21">21</asp:ListItem>
 <asp:ListItem Value="22">22</asp:ListItem>
 <asp:ListItem Value="23">23</asp:ListItem>
 <asp:ListItem Value="24">24</asp:ListItem>
 <asp:ListItem Value="25">25</asp:ListItem>
 <asp:ListItem Value="26">26</asp:ListItem>
 <asp:ListItem Value="27">27</asp:ListItem>
 <asp:ListItem Value="28">28</asp:ListItem>
 <asp:ListItem Value="29">29</asp:ListItem>
 <asp:ListItem Value="30">30</asp:ListItem>
 <asp:ListItem Value="31">31</asp:ListItem>
 </asp:DropDownList>
 
 
      
          &nbsp; 
<asp:DropDownList ID="ddlDrvBYear2" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
<asp:ListItem value="1931">1931</asp:ListItem>
<asp:ListItem value="1932">1932</asp:ListItem>
<asp:ListItem value="1933">1933</asp:ListItem>
<asp:ListItem value="1934">1934</asp:ListItem>
<asp:ListItem value="1935">1935</asp:ListItem>
<asp:ListItem value="1936">1936</asp:ListItem>
<asp:ListItem value="1937">1937</asp:ListItem>
<asp:ListItem value="1938">1938</asp:ListItem>
<asp:ListItem value="1939">1939</asp:ListItem>
<asp:ListItem value="1940">1940</asp:ListItem>
<asp:ListItem value="1941">1941</asp:ListItem>
<asp:ListItem value="1942">1942</asp:ListItem>
<asp:ListItem value="1943">1943</asp:ListItem>
<asp:ListItem value="1944">1944</asp:ListItem>
<asp:ListItem value="1945">1945</asp:ListItem>
<asp:ListItem value="1946">1946</asp:ListItem>
<asp:ListItem value="1947">1947</asp:ListItem>
<asp:ListItem value="1948">1948</asp:ListItem>
<asp:ListItem value="1949">1949</asp:ListItem>
<asp:ListItem value="1950">1950</asp:ListItem>
<asp:ListItem value="1951">1951</asp:ListItem>
<asp:ListItem value="1952">1952</asp:ListItem>
<asp:ListItem value="1953">1953</asp:ListItem>
<asp:ListItem value="1954">1954</asp:ListItem>
<asp:ListItem value="1955">1955</asp:ListItem>
<asp:ListItem value="1956">1956</asp:ListItem>
<asp:ListItem value="1957">1957</asp:ListItem>
<asp:ListItem value="1958">1958</asp:ListItem>
<asp:ListItem value="1959">1959</asp:ListItem>
<asp:ListItem value="1960">1960</asp:ListItem>
<asp:ListItem value="1961">1961</asp:ListItem>
<asp:ListItem value="1962">1962</asp:ListItem>
<asp:ListItem value="1963">1963</asp:ListItem>
<asp:ListItem value="1964">1964</asp:ListItem>
<asp:ListItem value="1965">1965</asp:ListItem>
<asp:ListItem value="1966">1966</asp:ListItem>
<asp:ListItem value="1967">1967</asp:ListItem>
<asp:ListItem value="1968">1968</asp:ListItem>
<asp:ListItem value="1969">1969</asp:ListItem>
<asp:ListItem value="1970">1970</asp:ListItem>
<asp:ListItem value="1971">1971</asp:ListItem>
<asp:ListItem value="1972">1972</asp:ListItem>
<asp:ListItem value="1973">1973</asp:ListItem>
<asp:ListItem value="1974">1974</asp:ListItem>
<asp:ListItem value="1975">1975</asp:ListItem>
<asp:ListItem value="1976">1976</asp:ListItem>
<asp:ListItem value="1977">1977</asp:ListItem>
<asp:ListItem value="1978">1978</asp:ListItem>
<asp:ListItem value="1979">1979</asp:ListItem>
<asp:ListItem value="1980">1980</asp:ListItem>
<asp:ListItem value="1981">1981</asp:ListItem>
<asp:ListItem value="1982">1982</asp:ListItem>
<asp:ListItem value="1983">1983</asp:ListItem>
<asp:ListItem value="1984">1984</asp:ListItem>
<asp:ListItem value="1985">1985</asp:ListItem>
<asp:ListItem value="1986">1986</asp:ListItem>
<asp:ListItem value="1987">1987</asp:ListItem>
<asp:ListItem value="1988">1988</asp:ListItem>
<asp:ListItem value="1989">1989</asp:ListItem>
<asp:ListItem value="1990">1990</asp:ListItem>
<asp:ListItem value="1991">1991</asp:ListItem>
<asp:ListItem value="1992">1992</asp:ListItem>
<asp:ListItem value="1993">1993</asp:ListItem>
<asp:ListItem value="1994">1994</asp:ListItem>
<asp:ListItem value="1995">1995</asp:ListItem> 
<asp:ListItem value="1996">1996</asp:ListItem>
<asp:ListItem value="1997">1997</asp:ListItem>
<asp:ListItem value="1998">1998</asp:ListItem>
<asp:ListItem value="1999">1999</asp:ListItem>
<asp:ListItem value="2000">2000</asp:ListItem>
</asp:DropDownList>





</td>
      <td><asp:DropDownList ID="ddlDrvYrsLicensed2" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList>
      
      
      
      
      
      
      </td>
    </tr>
    <tr>
      <td><strong>Driver 3:</strong></td>
      <td><asp:TextBox ID="txtDrvName3" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" /></td>
      <td>
       <asp:DropDownList ID="ddlDrvRelationship3" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="ddlDrvBMonth3" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>
      
      &nbsp;
<asp:DropDownList ID="ddlDrvBDay3" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 <asp:ListItem Value="12">12</asp:ListItem>
 <asp:ListItem Value="13">13</asp:ListItem>
 <asp:ListItem Value="14">14</asp:ListItem>
 <asp:ListItem Value="15">15</asp:ListItem>
 <asp:ListItem Value="16">16</asp:ListItem>
 <asp:ListItem Value="17">17</asp:ListItem>
 <asp:ListItem Value="18">18</asp:ListItem>
 <asp:ListItem Value="19">19</asp:ListItem>
 <asp:ListItem Value="20">20</asp:ListItem>
 <asp:ListItem Value="21">21</asp:ListItem>
 <asp:ListItem Value="22">22</asp:ListItem>
 <asp:ListItem Value="23">23</asp:ListItem>
 <asp:ListItem Value="24">24</asp:ListItem>
 <asp:ListItem Value="25">25</asp:ListItem>
 <asp:ListItem Value="26">26</asp:ListItem>
 <asp:ListItem Value="27">27</asp:ListItem>
 <asp:ListItem Value="28">28</asp:ListItem>
 <asp:ListItem Value="29">29</asp:ListItem>
 <asp:ListItem Value="30">30</asp:ListItem>
 <asp:ListItem Value="31">31</asp:ListItem>
 </asp:DropDownList>
      &nbsp;
           
<asp:DropDownList ID="ddlDrvBYear3" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
<asp:ListItem value="1931">1931</asp:ListItem>
<asp:ListItem value="1932">1932</asp:ListItem>
<asp:ListItem value="1933">1933</asp:ListItem>
<asp:ListItem value="1934">1934</asp:ListItem>
<asp:ListItem value="1935">1935</asp:ListItem>
<asp:ListItem value="1936">1936</asp:ListItem>
<asp:ListItem value="1937">1937</asp:ListItem>
<asp:ListItem value="1938">1938</asp:ListItem>
<asp:ListItem value="1939">1939</asp:ListItem>
<asp:ListItem value="1940">1940</asp:ListItem>
<asp:ListItem value="1941">1941</asp:ListItem>
<asp:ListItem value="1942">1942</asp:ListItem>
<asp:ListItem value="1943">1943</asp:ListItem>
<asp:ListItem value="1944">1944</asp:ListItem>
<asp:ListItem value="1945">1945</asp:ListItem>
<asp:ListItem value="1946">1946</asp:ListItem>
<asp:ListItem value="1947">1947</asp:ListItem>
<asp:ListItem value="1948">1948</asp:ListItem>
<asp:ListItem value="1949">1949</asp:ListItem>
<asp:ListItem value="1950">1950</asp:ListItem>
<asp:ListItem value="1951">1951</asp:ListItem>
<asp:ListItem value="1952">1952</asp:ListItem>
<asp:ListItem value="1953">1953</asp:ListItem>
<asp:ListItem value="1954">1954</asp:ListItem>
<asp:ListItem value="1955">1955</asp:ListItem>
<asp:ListItem value="1956">1956</asp:ListItem>
<asp:ListItem value="1957">1957</asp:ListItem>
<asp:ListItem value="1958">1958</asp:ListItem>
<asp:ListItem value="1959">1959</asp:ListItem>
<asp:ListItem value="1960">1960</asp:ListItem>
<asp:ListItem value="1961">1961</asp:ListItem>
<asp:ListItem value="1962">1962</asp:ListItem>
<asp:ListItem value="1963">1963</asp:ListItem>
<asp:ListItem value="1964">1964</asp:ListItem>
<asp:ListItem value="1965">1965</asp:ListItem>
<asp:ListItem value="1966">1966</asp:ListItem>
<asp:ListItem value="1967">1967</asp:ListItem>
<asp:ListItem value="1968">1968</asp:ListItem>
<asp:ListItem value="1969">1969</asp:ListItem>
<asp:ListItem value="1970">1970</asp:ListItem>
<asp:ListItem value="1971">1971</asp:ListItem>
<asp:ListItem value="1972">1972</asp:ListItem>
<asp:ListItem value="1973">1973</asp:ListItem>
<asp:ListItem value="1974">1974</asp:ListItem>
<asp:ListItem value="1975">1975</asp:ListItem>
<asp:ListItem value="1976">1976</asp:ListItem>
<asp:ListItem value="1977">1977</asp:ListItem>
<asp:ListItem value="1978">1978</asp:ListItem>
<asp:ListItem value="1979">1979</asp:ListItem>
<asp:ListItem value="1980">1980</asp:ListItem>
<asp:ListItem value="1981">1981</asp:ListItem>
<asp:ListItem value="1982">1982</asp:ListItem>
<asp:ListItem value="1983">1983</asp:ListItem>
<asp:ListItem value="1984">1984</asp:ListItem>
<asp:ListItem value="1985">1985</asp:ListItem>
<asp:ListItem value="1986">1986</asp:ListItem>
<asp:ListItem value="1987">1987</asp:ListItem>
<asp:ListItem value="1988">1988</asp:ListItem>
<asp:ListItem value="1989">1989</asp:ListItem>
<asp:ListItem value="1990">1990</asp:ListItem>
<asp:ListItem value="1991">1991</asp:ListItem>
<asp:ListItem value="1992">1992</asp:ListItem>
<asp:ListItem value="1993">1993</asp:ListItem>
<asp:ListItem value="1994">1994</asp:ListItem>
<asp:ListItem value="1995">1995</asp:ListItem> 
<asp:ListItem value="1996">1996</asp:ListItem>
<asp:ListItem value="1997">1997</asp:ListItem>
<asp:ListItem value="1998">1998</asp:ListItem>
<asp:ListItem value="1999">1999</asp:ListItem>
<asp:ListItem value="2000">2000</asp:ListItem>
</asp:DropDownList></td>
      <td><asp:DropDownList ID="ddlDrvYrsLicensed3" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList></td>
    </tr>
    <tr>
      <td><strong>Driver 4:</strong></td>
      <td><asp:TextBox ID="txtDrvName4" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" /></td>
      <td>
       <asp:DropDownList ID="ddlDrvRelationship4" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
     <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="ddlDrvBMonth4" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>
      &nbsp;
      
<asp:DropDownList ID="ddlDrvBDay4" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 <asp:ListItem Value="12">12</asp:ListItem>
 <asp:ListItem Value="13">13</asp:ListItem>
 <asp:ListItem Value="14">14</asp:ListItem>
 <asp:ListItem Value="15">15</asp:ListItem>
 <asp:ListItem Value="16">16</asp:ListItem>
 <asp:ListItem Value="17">17</asp:ListItem>
 <asp:ListItem Value="18">18</asp:ListItem>
 <asp:ListItem Value="19">19</asp:ListItem>
 <asp:ListItem Value="20">20</asp:ListItem>
 <asp:ListItem Value="21">21</asp:ListItem>
 <asp:ListItem Value="22">22</asp:ListItem>
 <asp:ListItem Value="23">23</asp:ListItem>
 <asp:ListItem Value="24">24</asp:ListItem>
 <asp:ListItem Value="25">25</asp:ListItem>
 <asp:ListItem Value="26">26</asp:ListItem>
 <asp:ListItem Value="27">27</asp:ListItem>
 <asp:ListItem Value="28">28</asp:ListItem>
 <asp:ListItem Value="29">29</asp:ListItem>
 <asp:ListItem Value="30">30</asp:ListItem>
 <asp:ListItem Value="31">31</asp:ListItem>
 </asp:DropDownList>
      
           &nbsp;
<asp:DropDownList ID="ddlDrvBYear4" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
<asp:ListItem value="1931">1931</asp:ListItem>
<asp:ListItem value="1932">1932</asp:ListItem>
<asp:ListItem value="1933">1933</asp:ListItem>
<asp:ListItem value="1934">1934</asp:ListItem>
<asp:ListItem value="1935">1935</asp:ListItem>
<asp:ListItem value="1936">1936</asp:ListItem>
<asp:ListItem value="1937">1937</asp:ListItem>
<asp:ListItem value="1938">1938</asp:ListItem>
<asp:ListItem value="1939">1939</asp:ListItem>
<asp:ListItem value="1940">1940</asp:ListItem>
<asp:ListItem value="1941">1941</asp:ListItem>
<asp:ListItem value="1942">1942</asp:ListItem>
<asp:ListItem value="1943">1943</asp:ListItem>
<asp:ListItem value="1944">1944</asp:ListItem>
<asp:ListItem value="1945">1945</asp:ListItem>
<asp:ListItem value="1946">1946</asp:ListItem>
<asp:ListItem value="1947">1947</asp:ListItem>
<asp:ListItem value="1948">1948</asp:ListItem>
<asp:ListItem value="1949">1949</asp:ListItem>
<asp:ListItem value="1950">1950</asp:ListItem>
<asp:ListItem value="1951">1951</asp:ListItem>
<asp:ListItem value="1952">1952</asp:ListItem>
<asp:ListItem value="1953">1953</asp:ListItem>
<asp:ListItem value="1954">1954</asp:ListItem>
<asp:ListItem value="1955">1955</asp:ListItem>
<asp:ListItem value="1956">1956</asp:ListItem>
<asp:ListItem value="1957">1957</asp:ListItem>
<asp:ListItem value="1958">1958</asp:ListItem>
<asp:ListItem value="1959">1959</asp:ListItem>
<asp:ListItem value="1960">1960</asp:ListItem>
<asp:ListItem value="1961">1961</asp:ListItem>
<asp:ListItem value="1962">1962</asp:ListItem>
<asp:ListItem value="1963">1963</asp:ListItem>
<asp:ListItem value="1964">1964</asp:ListItem>
<asp:ListItem value="1965">1965</asp:ListItem>
<asp:ListItem value="1966">1966</asp:ListItem>
<asp:ListItem value="1967">1967</asp:ListItem>
<asp:ListItem value="1968">1968</asp:ListItem>
<asp:ListItem value="1969">1969</asp:ListItem>
<asp:ListItem value="1970">1970</asp:ListItem>
<asp:ListItem value="1971">1971</asp:ListItem>
<asp:ListItem value="1972">1972</asp:ListItem>
<asp:ListItem value="1973">1973</asp:ListItem>
<asp:ListItem value="1974">1974</asp:ListItem>
<asp:ListItem value="1975">1975</asp:ListItem>
<asp:ListItem value="1976">1976</asp:ListItem>
<asp:ListItem value="1977">1977</asp:ListItem>
<asp:ListItem value="1978">1978</asp:ListItem>
<asp:ListItem value="1979">1979</asp:ListItem>
<asp:ListItem value="1980">1980</asp:ListItem>
<asp:ListItem value="1981">1981</asp:ListItem>
<asp:ListItem value="1982">1982</asp:ListItem>
<asp:ListItem value="1983">1983</asp:ListItem>
<asp:ListItem value="1984">1984</asp:ListItem>
<asp:ListItem value="1985">1985</asp:ListItem>
<asp:ListItem value="1986">1986</asp:ListItem>
<asp:ListItem value="1987">1987</asp:ListItem>
<asp:ListItem value="1988">1988</asp:ListItem>
<asp:ListItem value="1989">1989</asp:ListItem>
<asp:ListItem value="1990">1990</asp:ListItem>
<asp:ListItem value="1991">1991</asp:ListItem>
<asp:ListItem value="1992">1992</asp:ListItem>
<asp:ListItem value="1993">1993</asp:ListItem>
<asp:ListItem value="1994">1994</asp:ListItem>
<asp:ListItem value="1995">1995</asp:ListItem> 
<asp:ListItem value="1996">1996</asp:ListItem>
<asp:ListItem value="1997">1997</asp:ListItem>
<asp:ListItem value="1998">1998</asp:ListItem>
<asp:ListItem value="1999">1999</asp:ListItem>
<asp:ListItem value="2000">2000</asp:ListItem>
</asp:DropDownList></td>
      <td><asp:DropDownList ID="ddlDrvYrsLicensed4" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList></td>
    </tr>
    <tr>
      <td><strong>Driver 5:</strong></td>
      <td><asp:TextBox ID="txtDrvName5" runat="server" Width="95" /></td>
      <td>
      <asp:DropDownList ID="ddlDrvRelationship5" runat="server">      
      <asp:ListItem value="">Select One</asp:ListItem>
      <asp:ListItem>Insured</asp:ListItem>
      <asp:ListItem>Spouse</asp:ListItem>
      <asp:ListItem>Child</asp:ListItem>
     <asp:ListItem>Other</asp:ListItem>      
      </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="ddlDrvBMonth5" runat="server">
<asp:ListItem value="">Month</asp:ListItem>      
 <asp:ListItem Value="January">January</asp:ListItem>
 <asp:ListItem Value="February">February</asp:ListItem>
 <asp:ListItem Value="March">March</asp:ListItem>
 <asp:ListItem Value="April">April</asp:ListItem>
 <asp:ListItem Value="May">May</asp:ListItem>
 <asp:ListItem Value="June">June</asp:ListItem>
 <asp:ListItem Value="July">July</asp:ListItem>
 <asp:ListItem Value="August">August</asp:ListItem>
 <asp:ListItem Value="September">September</asp:ListItem>
 <asp:ListItem Value="October">October</asp:ListItem>
 <asp:ListItem Value="November">November</asp:ListItem>
 <asp:ListItem Value="December">December</asp:ListItem>
 </asp:DropDownList>
  &nbsp;    
      
<asp:DropDownList ID="ddlDrvBDay5" runat="server">      
 <asp:ListItem value="">Day</asp:ListItem>
 <asp:ListItem Value="1">1</asp:ListItem>
 <asp:ListItem Value="2">2</asp:ListItem>
 <asp:ListItem Value="3">3</asp:ListItem>
 <asp:ListItem Value="4">4</asp:ListItem>
 <asp:ListItem Value="5">5</asp:ListItem>
 <asp:ListItem Value="6">6</asp:ListItem>
 <asp:ListItem Value="7">7</asp:ListItem>
 <asp:ListItem Value="8">8</asp:ListItem>
 <asp:ListItem Value="9">9</asp:ListItem>
 <asp:ListItem Value="10">10</asp:ListItem>
 <asp:ListItem Value="11">11</asp:ListItem>
 <asp:ListItem Value="12">12</asp:ListItem>
 <asp:ListItem Value="13">13</asp:ListItem>
 <asp:ListItem Value="14">14</asp:ListItem>
 <asp:ListItem Value="15">15</asp:ListItem>
 <asp:ListItem Value="16">16</asp:ListItem>
 <asp:ListItem Value="17">17</asp:ListItem>
 <asp:ListItem Value="18">18</asp:ListItem>
 <asp:ListItem Value="19">19</asp:ListItem>
 <asp:ListItem Value="20">20</asp:ListItem>
 <asp:ListItem Value="21">21</asp:ListItem>
 <asp:ListItem Value="22">22</asp:ListItem>
 <asp:ListItem Value="23">23</asp:ListItem>
 <asp:ListItem Value="24">24</asp:ListItem>
 <asp:ListItem Value="25">25</asp:ListItem>
 <asp:ListItem Value="26">26</asp:ListItem>
 <asp:ListItem Value="27">27</asp:ListItem>
 <asp:ListItem Value="28">28</asp:ListItem>
 <asp:ListItem Value="29">29</asp:ListItem>
 <asp:ListItem Value="30">30</asp:ListItem>
 <asp:ListItem Value="31">31</asp:ListItem>
 </asp:DropDownList>
  &nbsp;    
           
<asp:DropDownList ID="ddlDrvBYear5" runat="server">      
<asp:ListItem value="">Year</asp:ListItem>
<asp:ListItem value="1910">1910</asp:ListItem>
<asp:ListItem value="1911">1911</asp:ListItem>
<asp:ListItem value="1912">1912</asp:ListItem>
<asp:ListItem value="1913">1913</asp:ListItem>
<asp:ListItem value="1914">1914</asp:ListItem>
<asp:ListItem value="1915">1915</asp:ListItem>
<asp:ListItem value="1916">1916</asp:ListItem>
<asp:ListItem value="1917">1917</asp:ListItem>
<asp:ListItem value="1918">1918</asp:ListItem>
<asp:ListItem value="1919">1919</asp:ListItem>
<asp:ListItem value="1920">1920</asp:ListItem>
<asp:ListItem value="1921">1921</asp:ListItem>
<asp:ListItem value="1922">1922</asp:ListItem>
<asp:ListItem value="1923">1923</asp:ListItem>
<asp:ListItem value="1924">1924</asp:ListItem>
<asp:ListItem value="1925">1925</asp:ListItem>
<asp:ListItem value="1926">1926</asp:ListItem>
<asp:ListItem value="1927">1927</asp:ListItem>
<asp:ListItem value="1928">1928</asp:ListItem>
<asp:ListItem value="1929">1929</asp:ListItem>
<asp:ListItem value="1930">1930</asp:ListItem>
<asp:ListItem value="1931">1931</asp:ListItem>
<asp:ListItem value="1932">1932</asp:ListItem>
<asp:ListItem value="1933">1933</asp:ListItem>
<asp:ListItem value="1934">1934</asp:ListItem>
<asp:ListItem value="1935">1935</asp:ListItem>
<asp:ListItem value="1936">1936</asp:ListItem>
<asp:ListItem value="1937">1937</asp:ListItem>
<asp:ListItem value="1938">1938</asp:ListItem>
<asp:ListItem value="1939">1939</asp:ListItem>
<asp:ListItem value="1940">1940</asp:ListItem>
<asp:ListItem value="1941">1941</asp:ListItem>
<asp:ListItem value="1942">1942</asp:ListItem>
<asp:ListItem value="1943">1943</asp:ListItem>
<asp:ListItem value="1944">1944</asp:ListItem>
<asp:ListItem value="1945">1945</asp:ListItem>
<asp:ListItem value="1946">1946</asp:ListItem>
<asp:ListItem value="1947">1947</asp:ListItem>
<asp:ListItem value="1948">1948</asp:ListItem>
<asp:ListItem value="1949">1949</asp:ListItem>
<asp:ListItem value="1950">1950</asp:ListItem>
<asp:ListItem value="1951">1951</asp:ListItem>
<asp:ListItem value="1952">1952</asp:ListItem>
<asp:ListItem value="1953">1953</asp:ListItem>
<asp:ListItem value="1954">1954</asp:ListItem>
<asp:ListItem value="1955">1955</asp:ListItem>
<asp:ListItem value="1956">1956</asp:ListItem>
<asp:ListItem value="1957">1957</asp:ListItem>
<asp:ListItem value="1958">1958</asp:ListItem>
<asp:ListItem value="1959">1959</asp:ListItem>
<asp:ListItem value="1960">1960</asp:ListItem>
<asp:ListItem value="1961">1961</asp:ListItem>
<asp:ListItem value="1962">1962</asp:ListItem>
<asp:ListItem value="1963">1963</asp:ListItem>
<asp:ListItem value="1964">1964</asp:ListItem>
<asp:ListItem value="1965">1965</asp:ListItem>
<asp:ListItem value="1966">1966</asp:ListItem>
<asp:ListItem value="1967">1967</asp:ListItem>
<asp:ListItem value="1968">1968</asp:ListItem>
<asp:ListItem value="1969">1969</asp:ListItem>
<asp:ListItem value="1970">1970</asp:ListItem>
<asp:ListItem value="1971">1971</asp:ListItem>
<asp:ListItem value="1972">1972</asp:ListItem>
<asp:ListItem value="1973">1973</asp:ListItem>
<asp:ListItem value="1974">1974</asp:ListItem>
<asp:ListItem value="1975">1975</asp:ListItem>
<asp:ListItem value="1976">1976</asp:ListItem>
<asp:ListItem value="1977">1977</asp:ListItem>
<asp:ListItem value="1978">1978</asp:ListItem>
<asp:ListItem value="1979">1979</asp:ListItem>
<asp:ListItem value="1980">1980</asp:ListItem>
<asp:ListItem value="1981">1981</asp:ListItem>
<asp:ListItem value="1982">1982</asp:ListItem>
<asp:ListItem value="1983">1983</asp:ListItem>
<asp:ListItem value="1984">1984</asp:ListItem>
<asp:ListItem value="1985">1985</asp:ListItem>
<asp:ListItem value="1986">1986</asp:ListItem>
<asp:ListItem value="1987">1987</asp:ListItem>
<asp:ListItem value="1988">1988</asp:ListItem>
<asp:ListItem value="1989">1989</asp:ListItem>
<asp:ListItem value="1990">1990</asp:ListItem>
<asp:ListItem value="1991">1991</asp:ListItem>
<asp:ListItem value="1992">1992</asp:ListItem>
<asp:ListItem value="1993">1993</asp:ListItem>
<asp:ListItem value="1994">1994</asp:ListItem>
<asp:ListItem value="1995">1995</asp:ListItem> 
<asp:ListItem value="1996">1996</asp:ListItem>
<asp:ListItem value="1997">1997</asp:ListItem>
<asp:ListItem value="1998">1998</asp:ListItem>
<asp:ListItem value="1999">1999</asp:ListItem>
<asp:ListItem value="2000">2000</asp:ListItem>
</asp:DropDownList></td>
      <td><asp:DropDownList ID="ddlDrvYrsLicensed5" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem>1</asp:ListItem>
        <asp:ListItem>2</asp:ListItem>
        <asp:ListItem>3-5</asp:ListItem>
        <asp:ListItem>5-8</asp:ListItem>
        <asp:ListItem>10-14</asp:ListItem>
        <asp:ListItem>15-50</asp:ListItem>
        <asp:ListItem>Over 50</asp:ListItem>
      </asp:DropDownList></td>
    </tr>
        </table>
 <br />
    
    <table style="width:600px;">
       <tr>
    <td >
    <br />
    <p style="text-align:justify;line-height:17px; border:1px solid #E3E3E3; padding:10px;"><span style="font-weight:bold; text-decoration:underline;">Ticket/Accident Disclaimer</span><br/> Have you or any other driver in your household received a ticket or accident in the last three years?  (Failure to disclose an accident or ticket will result in an inaccurate quotation. It can also result disqualifying you from an insurance company. Some of our insurance companies only accept good driver by definition.)<br /><br />
If you have gone to traffic school more than once in the last 18 months, it will show up on your motor vehicle report as dismissed and be charged as a point.<br /><br />
If your license has been suspended for even one day in the last three years you will not qualify for a good driver discount (20%). You must be licensed continuously for three years to qualify.</p>
<br />
</td>
</tr>
  </table>  
    
    
 
 



 </asp:WizardStep>
 
 
 
 
 
  
  <asp:WizardStep ID="WizardStep4" runat="server" StepType="Step" Title="Step 3: Tickets &amp; Accidents">




<h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;List Tickets And Accidents&nbsp;&mdash;</strong></h3>

<br />
  <table width="600" border="0" cellspacing="4" cellpadding="4">
  <tr>
    <td>&nbsp;</td>
    <td><strong>Ticket or Accident</strong></td>
    <td><strong>Date of Violation/Accident</strong></td>
    <td><strong>License Suspneded?</strong></td>
    <td><strong>Date License Reinstated</strong></td>
  </tr>
  <tr>
    <td><strong>Driver 1:</strong></td>
    <td>
 <asp:DropDownList ID="ddlDrv1TicAcc" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="At Fault">Ar Fault</asp:ListItem>
 <asp:ListItem Value="Non Fault">Non Fault</asp:ListItem>
 <asp:ListItem Value="Minor Mov">Minor Mov</asp:ListItem>
 <asp:ListItem Value="DUI">DUI</asp:ListItem>
 <asp:ListItem Value="Reckless">Reckless</asp:ListItem>
 <asp:ListItem Value="Speed Exhib">Speed Exhib</asp:ListItem>
 </asp:DropDownList>
 </td>
    <td>
 
    <asp:TextBox ID="txtDrv1TicAccDt" MaxLength="75" runat="server" Width="95" />
    <asp:Image ID="Calendar_scheduleHS1" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExDrv1TicAccDt" runat="server" TargetControlID="txtDrv1TicAccDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS1"  />
 
    </td>
    <td> <asp:DropDownList ID="ddlDrv1LicSusYN" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="Yes">Yes</asp:ListItem>
 <asp:ListItem Value="No">No</asp:ListItem>
  </asp:DropDownList></td>
    <td><asp:TextBox ID="txtDrv1LicRstDt" MaxLength="75" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS2" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
     <asp:CalendarExtender ID="CalExDrv1LicRstDt" runat="server" TargetControlID="txtDrv1LicRstDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS2" />
    
    </td>
  </tr>
  <tr>
    <td><strong>Driver 2:</strong></td>
    <td><asp:DropDownList ID="ddlDrv2TicAcc" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="At Fault">Ar Fault</asp:ListItem>
 <asp:ListItem Value="Non Fault">Non Fault</asp:ListItem>
 <asp:ListItem Value="Minor Mov">Minor Mov</asp:ListItem>
 <asp:ListItem Value="DUI">DUI</asp:ListItem>
 <asp:ListItem Value="Reckless">Reckless</asp:ListItem>
 <asp:ListItem Value="Speed Exhib">Speed Exhib</asp:ListItem>
 </asp:DropDownList></td>
    <td>
    
    <asp:TextBox ID="txtDrv2TicAccDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS3" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
     <asp:CalendarExtender ID="CalEx2TicAccDt" runat="server" TargetControlID="txtDrv2TicAccDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS3" />
    
    </td>
    <td><asp:DropDownList ID="ddlDrv2LicSusYN" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="Yes">Yes</asp:ListItem>
 <asp:ListItem Value="No">No</asp:ListItem>
  </asp:DropDownList></td>
    <td><asp:TextBox ID="txtDrv2LicRstDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS4" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExtDrv2LicRstDt" runat="server" TargetControlID="txtDrv2LicRstDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS4" />
    
    </td>
  </tr>
  <tr>
    <td><strong>Driver 3:</strong></td>
    <td><asp:DropDownList ID="ddlDrv3TicAcc" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="At Fault">Ar Fault</asp:ListItem>
 <asp:ListItem Value="Non Fault">Non Fault</asp:ListItem>
 <asp:ListItem Value="Minor Mov">Minor Mov</asp:ListItem>
 <asp:ListItem Value="DUI">DUI</asp:ListItem>
 <asp:ListItem Value="Reckless">Reckless</asp:ListItem>
 <asp:ListItem Value="Speed Exhib">Speed Exhib</asp:ListItem>
 </asp:DropDownList></td>
    <td>
    
    <asp:TextBox ID="txtDrv3TicAccDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS5" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExtDrv3TicAccDt" runat="server" TargetControlID="txtDrv3TicAccDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS5" />
    </td>
    <td><asp:DropDownList ID="ddlDrv3LicSusYN" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="Yes">Yes</asp:ListItem>
 <asp:ListItem Value="No">No</asp:ListItem>
  </asp:DropDownList></td>
    <td><asp:TextBox ID="txtDrv3LicRstDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS6" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExDrv3LicRstDt" runat="server" TargetControlID="txtDrv3LicRstDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS6" />
    
    </td>
  </tr>
  <tr>
    <td><strong>Driver 4:</strong></td>
    <td><asp:DropDownList ID="ddlDrv4TicAcc" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="At Fault">Ar Fault</asp:ListItem>
 <asp:ListItem Value="Non Fault">Non Fault</asp:ListItem>
 <asp:ListItem Value="Minor Mov">Minor Mov</asp:ListItem>
 <asp:ListItem Value="DUI">DUI</asp:ListItem>
 <asp:ListItem Value="Reckless">Reckless</asp:ListItem>
 <asp:ListItem Value="Speed Exhib">Speed Exhib</asp:ListItem>
 </asp:DropDownList></td>
    <td>
    
    <asp:TextBox ID="txtDrv4TicAccDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS7" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExtDrv4TicAccDt" runat="server" TargetControlID="txtDrv4TicAccDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS7" />
    
    </td>
    <td><asp:DropDownList ID="ddlDrv4LicSusYN" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="Yes">Yes</asp:ListItem>
 <asp:ListItem Value="No">No</asp:ListItem>
  </asp:DropDownList></td>
    <td><asp:TextBox ID="txtDrv4LicRstDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS8" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExtDrv4LicRstDt" runat="server" TargetControlID="txtDrv4LicRstDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS8" />
    
    </td>
  </tr>
  <tr>
    <td><strong>Driver 5:</strong></td>
    <td><asp:DropDownList ID="ddlDrv5TicAcc" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="At Fault">Ar Fault</asp:ListItem>
 <asp:ListItem Value="Non Fault">Non Fault</asp:ListItem>
 <asp:ListItem Value="Minor Mov">Minor Mov</asp:ListItem>
 <asp:ListItem Value="DUI">DUI</asp:ListItem>
 <asp:ListItem Value="Reckless">Reckless</asp:ListItem>
 <asp:ListItem Value="Speed Exhib">Speed Exhib</asp:ListItem>
 </asp:DropDownList></td>
    <td>
    <asp:TextBox ID="txtDrv5TicAccDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS9" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExDrv5TicAccDt" runat="server" TargetControlID="txtDrv5TicAccDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS9" />
    
    </td>
    <td><asp:DropDownList ID="ddlDrv5LicSusYN" runat="server">
 <asp:ListItem value="">- Select One -</asp:ListItem>      
 <asp:ListItem Value="Yes">Yes</asp:ListItem>
 <asp:ListItem Value="No">No</asp:ListItem>
  </asp:DropDownList></td>
    <td><asp:TextBox ID="txtDrv5LicRstDt" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
    <asp:Image ID="Calendar_scheduleHS10" runat="server" ImageUrl="images/Calendar_scheduleHS.png" />&nbsp;
    <asp:CalendarExtender ID="CalExtDrv5LicRstDt" runat="server" TargetControlID="txtDrv5LicRstDt" CssClass="MyCalendar" PopupButtonID="Calendar_scheduleHS10" />
    
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </table>
  
  
  <table style="width:585px;">
   <tr>
     <td><p style="text-align:justify;line-height:17px; border:1px solid #E3E3E3; padding:10px;"><span style="font-weight:bold; text-decoration:underline;">Date Disclaimer</span><br/>We realize that unless you have a current motor vehicle report in your hand, it is difficult to remember exact violation or conviction dates. Do the best that you can for at least the month and year that the violation or accident occurred in . If you decide to purchase insurance from us, we will run current motor vehicle reports at that time. Insurance Companies hold at fault accidents and minor moving violations chargeable for three years. Major violations have different rules depending upon the violation. <br /><br /> 
You can only go to Traffic School once in an 18 month period and not have that violation show up on your motor vehicle report. If you go more than once the second violation will show up on your motor vehicle report with a notation, dismissed. Insurance companies will charge you a point for this violation.</p><br />
</td>
 </tr>
</table>


</asp:WizardStep>
 
 
 
 
 
  
  <asp:WizardStep ID="WizardStep5" runat="server" StepType="Step" Title="Step 4: Vehicles">



<h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;Vehicles&nbsp;&mdash;</strong></h3><br />

<table width="600" border="0" cellspacing="4" cellpadding="4">
 
  <tr>
    <td>&nbsp;</td>
    <td><strong>Year</strong></td>
    <td><strong>Make</strong></td>
    <td><strong>Model</strong></td>
    <td><strong>Vin Number</strong></td>
    <td><strong>Driver #</strong></td>
  </tr>
  <tr>
    <td><strong>#1</strong></td>
    <td><asp:TextBox ID="txtVeh1Year" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh1Make" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh1Model" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh1Vin" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:DropDownList ID="ddlVeh1Driver" runat="server">
        <asp:ListItem value="">-- Select One --</asp:ListItem>
        <asp:ListItem value="1">1</asp:ListItem>
        <asp:ListItem value="2">2</asp:ListItem>
        <asp:ListItem value="3">3</asp:ListItem>
        <asp:ListItem value="4">4</asp:ListItem>
        <asp:ListItem value="5">5</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>#2</strong></td>
    <td><asp:TextBox ID="txtVeh2Year" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh2Make" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh2Model" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh2Vin" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:DropDownList ID="ddlVeh2Driver" runat="server">
        <asp:ListItem value="">-- Select One --</asp:ListItem>
       <asp:ListItem value="1">1</asp:ListItem>
        <asp:ListItem value="2">2</asp:ListItem>
        <asp:ListItem value="3">3</asp:ListItem>
        <asp:ListItem value="4">4</asp:ListItem>
        <asp:ListItem value="5">5</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>#3</strong></td>
    <td><asp:TextBox ID="txtVeh3Year" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh3Make" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh3Model" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh3Vin" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:DropDownList ID="ddlVeh3Driver" runat="server">
        <asp:ListItem value="">-- Select One --</asp:ListItem>
        <asp:ListItem value="1">1</asp:ListItem>
        <asp:ListItem value="2">2</asp:ListItem>
        <asp:ListItem value="3">3</asp:ListItem>
        <asp:ListItem value="4">4</asp:ListItem>
        <asp:ListItem value="5">5</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>#4</strong></td>
    <td><asp:TextBox ID="txtVeh4Year" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh4Make" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh4Model" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:TextBox ID="txtVeh4Vin" MaxLength="50" runat="server" Width="100" /></td>
    <td><asp:DropDownList ID="ddlVeh4Driver" runat="server">
        <asp:ListItem value="">-- Select One --</asp:ListItem>
       <asp:ListItem value="1">1</asp:ListItem>
        <asp:ListItem value="2">2</asp:ListItem>
        <asp:ListItem value="3">3</asp:ListItem>
        <asp:ListItem value="4">4</asp:ListItem>
        <asp:ListItem value="5">5</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </table>
  
  <table style="width:590px;">
  <tr>
    <td><p style="text-align:justify;line-height:17px; border:1px solid #E3E3E3; padding:10px;"><span style="font-weight:bold; text-decoration:underline;">Vin Number Disclaimer</span><br/>While it is not necessary to input a VIN # to get a quotation, your quotation will be an approximation until we have the VIN numbers for all of the cars quoted. Cars are assigned symbols, based upon their value and damageability.  Symbols go from 1 to 28. 28 being a very expensive or damageable car and 1 not so much. Often a manufacturer will make more than one sub-model of a car, 2dr vs. 4dr, automatic vs. manual transmission, 2 wheel drive vs. 4 wheel drive, standard edition vs. luxury edition, etc. So one car model can have several symbols.  If we pick a sub-model with a symbol that is higher than your car, we will over price your car. If we pick the symbol that is lower than your car&#39;s, we will under price your car.</p></td>
   
  </tr>
</table>
<br />

</asp:WizardStep>
 
 
 
 
 
  
  <asp:WizardStep ID="WizardStep6" runat="server" StepType="Step" Title="Step 5: Coverages">
  
  
<br />


<h3 style="text-align:center; height:21px;padding-top:4px;"> <strong>&mdash;&nbsp;Coverages&nbsp;&mdash;</strong></h3><br />

  
<table width="600" border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td>&nbsp;</td>
    <td><strong>Car #1</strong></td>
    <td><strong>Car #2</strong></td>
    <td><strong>Car #3</strong></td>
    <td><strong>Car #4</strong></td>
  </tr>
  <tr>
    <td><strong>Bodily Injury:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1BodInjury" runat="server" AutoPostBack="True">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,000/30,000">15,000/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2BodInjury" runat="server" >
        <asp:ListItem value="">Select One</asp:ListItem>
       <asp:ListItem value="15,000/30,000">15,000/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3BodInjury" runat="server" >
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,000/30,000">15,000/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4BodInjury" runat="server" >
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,000/30,000">15,000/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Property Damage:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1PropDamage" runat="server" AutoPostBack="True">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="25,000">25,000</asp:ListItem>
        <asp:ListItem value="50,000">50,000</asp:ListItem>
        <asp:ListItem value="100,000">100,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2PropDamage" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
         <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="25,000">25,000</asp:ListItem>
        <asp:ListItem value="50,000">50,000</asp:ListItem>
        <asp:ListItem value="100,000">100,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3PropDamage" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
         <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="25,000">25,000</asp:ListItem>
        <asp:ListItem value="50,000">50,000</asp:ListItem>
        <asp:ListItem value="100,000">100,000</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4PropDamage" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="25,000">25,000</asp:ListItem>
        <asp:ListItem value="50,000">50,000</asp:ListItem>
        <asp:ListItem value="100,000">100,000</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Medical Payments:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1MedPayments" runat="server" AutoPostBack="True">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="1,000">1,000</asp:ListItem>
        <asp:ListItem value="2,000">2,000</asp:ListItem>
        <asp:ListItem value="5,000">5,000</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2MedPayments" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="1,000">1,000</asp:ListItem>
        <asp:ListItem value="2,000">2,000</asp:ListItem>
        <asp:ListItem value="5,000">5,000</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3MedPayments" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
         <asp:ListItem value="1,000">1,000</asp:ListItem>
        <asp:ListItem value="2,000">2,000</asp:ListItem>
        <asp:ListItem value="5,000">5,000</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4MedPayments" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
         <asp:ListItem value="1,000">1,000</asp:ListItem>
        <asp:ListItem value="2,000">2,000</asp:ListItem>
        <asp:ListItem value="5,000">5,000</asp:ListItem>
        <asp:ListItem value="10,000">10,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Uninsured Motorists:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1UninMotor" runat="server" AutoPostBack="True">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,00/30,000">15,00/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="30,000/60,000">30,000/60,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2UninMotor" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,00/30,000">15,00/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="30,000/60,000">30,000/60,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3UninMotor" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,00/30,000">15,00/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="30,000/60,000">30,000/60,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4UninMotor" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="15,00/30,000">15,00/30,000</asp:ListItem>
        <asp:ListItem value="25,000/50,000">25,000/50,000</asp:ListItem>
        <asp:ListItem value="30,000/60,000">30,000/60,000</asp:ListItem>
        <asp:ListItem value="50,000/100,000">50,000/100,000</asp:ListItem>
        <asp:ListItem value="100,000/300,000">100,000/300,000</asp:ListItem>
        <asp:ListItem value="250,000/500,000">250,000/500,000</asp:ListItem>
        <asp:ListItem value="500,000/500,000">500,000/500,000</asp:ListItem>
        <asp:ListItem value="None">None</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Collsion Ded Waiver:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1CollWaiverYN" runat="server" AutoPostBack="True">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="Yes">Yes</asp:ListItem>
        <asp:ListItem value="No">No</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2CollWaiverYN" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="Yes">Yes</asp:ListItem>
        <asp:ListItem value="No">No</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3CollWaiverYN" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="Yes">Yes</asp:ListItem>
        <asp:ListItem value="No">No</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4CollWaiverYN" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="Yes">Yes</asp:ListItem>
        <asp:ListItem value="No">No</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Comprehensive:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1Comprehsive" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2Comprehsive" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3Comprehsive" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4Comprehsive" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Collision:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1Collision" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2Collision" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3Collision" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4Collision" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$100">$100</asp:ListItem>
        <asp:ListItem value="$250">$250</asp:ListItem>
        <asp:ListItem value="$500">$500</asp:ListItem>
        <asp:ListItem value="$1,000">$1,000</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Towing:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1Towing" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$50">$50</asp:ListItem>
        <asp:ListItem value="$75">$75</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2Towing" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$50">$50</asp:ListItem>
        <asp:ListItem value="$75">$75</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3Towing" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$50">$50</asp:ListItem>
        <asp:ListItem value="$75">$75</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4Towing" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$50">$50</asp:ListItem>
        <asp:ListItem value="$75">$75</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td><strong>Rental:</strong></td>
    <td><asp:DropDownList ID="ddlVeh1Rental" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$20/Day">$20/Day</asp:ListItem>
        <asp:ListItem value="$30/Day">$30/Day</asp:ListItem>
        <asp:ListItem value="$40/Day">$40/Day</asp:ListItem>
        <asp:ListItem value="$50/Day">$50/Day</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh2Rental" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$20/Day">$20/Day</asp:ListItem>
        <asp:ListItem value="$30/Day">$30/Day</asp:ListItem>
        <asp:ListItem value="$40/Day">$40/Day</asp:ListItem>
        <asp:ListItem value="$50/Day">$50/Day</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh3Rental" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$20/Day">$20/Day</asp:ListItem>
        <asp:ListItem value="$30/Day">$30/Day</asp:ListItem>
        <asp:ListItem value="$40/Day">$40/Day</asp:ListItem>
        <asp:ListItem value="$50/Day">$50/Day</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
    <td><asp:DropDownList ID="ddlVeh4Rental" runat="server">
        <asp:ListItem value="">Select One</asp:ListItem>
        <asp:ListItem value="$20/Day">$20/Day</asp:ListItem>
        <asp:ListItem value="$30/Day">$30/Day</asp:ListItem>
        <asp:ListItem value="$40/Day">$40/Day</asp:ListItem>
        <asp:ListItem value="$50/Day">$50/Day</asp:ListItem>
        <asp:ListItem value="No Coverage">No Coverage</asp:ListItem>
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="5" align="center">
    
    
     
                 </td>
    </tr>
</table>


</asp:WizardStep>
 
 
 
 
 


 <asp:WizardStep ID="WizardStep7" runat="server" Title="Step 6: Review" StepType="Finish">
<br />

<p>Please review all your entries carefully. To make corrections or additions, you may go back to any previous step by either Clicking the <strong>Previous</strong> button or by Clicking a <strong>Step Link</strong> from the left menu. </p>
<br /><p>When you are ready to submit your Auto quote to Nowhere Insurance, navigate back to this screen (Review) and Click <strong>Finish.</strong> </p>

<asp:Label ID="Label1" runat="server"></asp:Label><br />

<p>&nbsp;</p>
<p>When you are ready to submit your Auto quote to Nowhere Insurance, Click <strong>Finish.</strong>.

</p>
<p>&nbsp;</p>


</asp:WizardStep>

  <asp:WizardStep ID="WizardStep8" runat="server" Title="Complete worksheet" StepType="Complete">
  <p>Congratulations! You have successfully completed the Auto Insurance Quotation Information Worksheet.</p><br />
           <p>Please allow up to 48 hours for a response.</p><br />
           <p>Thank you for your interest in <strong> Nowhere Insurance</strong>, we look forward to serving you!</p><br />
           
   <p> If you require further assistance, please contact Nowhere Insurance toll free at (800) 840-7919.</p><br />
  
   <hr noshade color="#808080" size="1" width="94%"><br />
  <a style="color:#3D1804;" href="http://Nowhere.com/Quote.aspx">Submit another quote request</a> | <a style="color:#3D1804;" href="http://Nowhere.com/">Return to Nowhere.com home</a>
                
          
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          
          </asp:WizardStep>
                
            </WizardSteps>
            
            <SideBarButtonStyle ForeColor="#AFB9C5" /> 
            <SideBarStyle BackColor="#C8BEA8" Font-Size="0.9em" VerticalAlign="Top" Width="170" HorizontalAlign="Left" />
            
            <SideBarTemplate>
                <asp:DataList ID="SideBarList" runat="server" Width="170" CellPadding="7" CellSpacing="7">
                    <ItemTemplate>
                        <asp:LinkButton ID="SideBarButton" runat="server" ForeColor="#336699"></asp:LinkButton>
                    </ItemTemplate>
                    <SelectedItemStyle Font-Bold="True" ForeColor="#00CC00" Font-Underline="True" />
                </asp:DataList>
            </SideBarTemplate>
            
            
                        
           <StartNavigationTemplate>
                <asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" 
                    Text="Next" />
            </StartNavigationTemplate>
            
            
            <NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" 
                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
                ForeColor="#1C5E55" />
            
                     
            <FinishNavigationTemplate>
                <asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" 
                    CommandName="MovePrevious" Text="Previous" />
                <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" ValidationGroup="AutoQuote" Text="Finish" />
            </FinishNavigationTemplate>
            
            <HeaderStyle BackColor="#888888" BorderColor="#E6E2D8" BorderStyle="Solid" 
                BorderWidth="2px" Font-Bold="True" Font-Size="1.1em" ForeColor="White" 
                HorizontalAlign="Center" />
                
            
            <StepNavigationTemplate>
				<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
					Text="Previous" />
				<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next"
					CausesValidation="True" ValidationGroup="AutoQuote" OnClientClick />
			</StepNavigationTemplate>
            
            <StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" CssClass="wizardsidestep"  BorderStyle="Solid" 
                BorderWidth="2px" />
            
             
        </asp:Wizard>



  
  <p>&nbsp;</p>
  </ContentTemplate>
     </asp:UpdatePanel>
     
     
   <asp:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1" BehaviorID="animation" runat="server" TargetControlID="UpdatePanel1">
                <Animations>
                    <OnUpdating>
                        <Parallel duration="0">
                            <%-- place the update progress div over the wizard control --%>
                            <ScriptAction Script="onUpdating();" />  
                            <%-- fade-out the wizard --%>
                            <FadeOut minimumOpacity=".5" />
                         </Parallel>
                    </OnUpdating>
                    <OnUpdated>
                        <Parallel duration="0">
                            <%-- fade back in the wizard --%>
                            <FadeIn minimumOpacity=".5" />
                            <%--find the update progress div and place it over the wizard control--%>
                            <ScriptAction Script="onUpdated();" /> 
                        </Parallel> 
                    </OnUpdated>
                </Animations>
            </asp:UpdatePanelAnimationExtender>
            <div id="updateProgressDiv" style="display: none; height: 40px; width: 40px">
                <img src="simple.gif" />
            </div>              
     
 
     <!-- </asp:Panel> -->
     
     
  
     
  </form>
  
  
  </div>
  
  
  </div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </div>
   
  

 

</div>



</div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>

<!-- ####### START FOOTER ####### -->
<URCtrls:Footer id="BtmNav" runat="server" />
<!-- ####### END FOOTER ####### -->
</body>
</html>

Open in new window

0
 
jayschAuthor Commented:
baiju_nagori,

If you could just confirm that I've implemented your code properly, I will go ahead and award points. If implemented properly, then I'll figure out what's blocking the functionality I need.

Thanks again.
0
 
baiju_nagoriCommented:
Your code seems to be fine. I am not sure why it is not working. This is the code I used to get proper validation. Just paste it in a temporary page and see how it works. Change the reference path for Jquery.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Wizard.aspx.vb" Inherits="Webforms_Temp_Wizard" %>

<!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></title>

	<script type="text/javascript" src="../../JS/jquery-1.2.3.min.js"></script>

	<script type="text/javascript" language="javascript">

		function ValidateValues(oSrc, args)
		{

			var ErrorMessage = '';
			var ControlToFocus;
			var isValid = true;
			$('[id~="txtDrvName"]').each(function()
			{
				if (this.value != '')
				{
					// get all the dropdown or other controls in this manner
					ddlDrvRelationship = this.id.replace("txtDrvName", "ddlDrvRelationship");
					if ($("#" + ddlDrvRelationship).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Relationship not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBMonth = this.id.replace("txtDrvName", "ddlDrvBMonth");
					if ($("#" + ddlDrvBMonth).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Month not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBDay = this.id.replace("txtDrvName", "ddlDrvBDay");
					if ($("#" + ddlDrvBDay).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Day not specified for Driver: " + this.value + "<br/>";
					}
					ddlDrvBYear = this.id.replace("txtDrvName", "ddlDrvBYear");
					if ($("#" + ddlDrvBYear).val() == '')
					{
						isValid = false;
						ErrorMessage = ErrorMessage + "Birth Date Year not specified for Driver: " + this.value + "<br/>";
					}
				}
			});

			oSrc.innerHTML = ErrorMessage;

			if (!isValid)
			{
				while (ErrorMessage.indexOf("<br/>") > -1)
					ErrorMessage = ErrorMessage.replace("<br/>", "\n");
				oSrc.setAttribute("errormessage", ErrorMessage);
				//alert(ErrorMessage);
			}

			args.IsValid = isValid;
		}


	</script>

</head>
<body>
	<form id="form1" runat="server">
	<div>
		<asp:Wizard ID="Wizard1" Width="872" BackColor="#E6E2D8" HeaderText="Auto Insurance Quotation Information Worksheet"
			runat="server" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="2"
			CellSpacing="4" CssClass="wizardsidestep" HeaderStyle-Height="35px" ActiveStepIndex="1">
			<WizardSteps>
				<asp:WizardStep ID="WizardStep1" runat="server" StepType="Start" Title="Start worksheet">
					<p>
						Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu ipsum dui.
						Nam laoreet faucibus vestibulum. Nulla rutrum vulputate nisl, in adipiscing nibh
						venenatis vitae. Vivamus laoreet nisl eget justo aliquam cursus. Lorem ipsum dolor
						sit amet, consectetur adipiscing elit.</p>
					<br />
					<p>
						We will respond to your auto quote request with in two business days.</p>
					<br />
					<p>
						Please click <strong>Next</strong> to proceed.</p>
					<br />
					<br />
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep2" runat="server" StepType="Step" Title="Step 1: Your contact info">
					<br />
					<h3 style="text-align: center; height: 21px; padding-top: 4px;">
						<strong>&mdash;&nbsp;Your Contact Information&nbsp;&mdash;</strong></h3>
					<br />
					<table width="600" border="0" cellspacing="2" cellpadding="2">
						<tr>
							<td>
								<strong>Name<span style="font-size: small;">*</span></strong>:
							</td>
							<td>
								<strong>First Name</strong>
							</td>
							<td colspan="3">
								<strong>Last Name</strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtFirstName" MaxLength="50" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valFirstName" runat="server" ErrorMessage="Please enter first name"
									ControlToValidate="txtFirstName" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td colspan="3">
								<asp:TextBox ID="txtLastName" MaxLength="75" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valLastName" runat="server" ErrorMessage="Please enter last name"
									ControlToValidate="txtLastName" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
						</tr>
						<tr>
							<td>
								<strong>Address<span style="font-size: small;">*</span></strong>:
							</td>
							<td>
								<strong>Street</strong>
							</td>
							<td>
								<strong>City</strong>
							</td>
							<td>
								<strong>State</strong>
							</td>
							<td>
								<strong></strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtStreet" MaxLength="75" TextMode="SingleLine" runat="server" />
								<br />
								<asp:RequiredFieldValidator ID="valStreet" runat="server" ErrorMessage="Please enter street address"
									ControlToValidate="txtStreet" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:TextBox ID="txtCity" MaxLength="75" runat="server" />&nbsp;&nbsp;
								<br />
								<asp:RequiredFieldValidator ID="valCity" runat="server" ErrorMessage="Please enter city"
									ControlToValidate="txtCity" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:DropDownList ID="ddlState" runat="server">
									<asp:ListItem Value="">-- Select a State --</asp:ListItem>
									<asp:ListItem Value="Alabama">Alabama</asp:ListItem>
									<asp:ListItem Value="Alaska">Alaska</asp:ListItem>
									<asp:ListItem Value="Arizona">Arizona</asp:ListItem>
									<asp:ListItem Value="Arkansas">Arkansas</asp:ListItem>
									<asp:ListItem Value="California">California</asp:ListItem>
									<asp:ListItem Value="Colorado">Colorado</asp:ListItem>
									<asp:ListItem Value="Connecticut">Connecticut</asp:ListItem>
								</asp:DropDownList>
								<br />
								<asp:RequiredFieldValidator ID="valState" runat="server" ErrorMessage="Please enter state"
									ControlToValidate="ddlState" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Phone<span style="font-size: small;">*</span>:</strong>
							</td>
							<td>
								<strong>Daytime Phone</strong>
							</td>
							<td>
								<strong>EMail</strong>
							</td>
							<td>
								<strong>Zip</strong>
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<asp:TextBox ID="txtPhoneDay" MaxLength="25" TextMode="SingleLine" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valPhoneDay" runat="server" ErrorMessage="Please enter zip code"
									ControlToValidate="txtPhoneDay" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:TextBox ID="txtemail" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Please enter email address"
									ControlToValidate="txtemail" Display="Dynamic" ValidationGroup="AutoQuote" />
								<asp:RegularExpressionValidator ID="valEmailValid" runat="server" ErrorMessage="Please enter a valid email address"
									ControlToValidate="txtemail" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
							</td>
							<td align="left">
								<asp:TextBox ID="txtZip" MaxLength="11" runat="server" /><br />
								<asp:RequiredFieldValidator ID="valZip" runat="server" ErrorMessage="Please enter zip code"
									ControlToValidate="txtZip" Display="Dynamic" ValidationGroup="AutoQuote" />
							</td>
						</tr>
					</table>
					<br />
					<br />
					<p>
						<span style="font-size: large;">*</span><i>All fields on this screen are required</i></p>
					<br />
					<br />
					<br />
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep3" runat="server" StepType="Step" Title="Step 2: List All Drivers">
					<h3 style="text-align: center; height: 21px; padding-top: 4px;">
						<strong>&mdash;&nbsp;List All Drivers&nbsp;&mdash;</strong></h3>
					<br />
					<div style="margin: 0px 0px 10px 18px;">
						<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList"
							HeaderText="<u>Please Complete the Following Fields:</u>" ValidationGroup="AutoQuote" />
					</div>
					<asp:TextBox ID="TextBox1" runat="server" Width="75px" Style="display: none"></asp:TextBox>
					<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1"
						ErrorMessage="Validation Error" ClientValidationFunction="ValidateValues" Display="Dynamic"
						Text="Validation Error" ValidateEmptyText="true" ValidationGroup="AutoQuote"></asp:CustomValidator>
					<!--- HeaderText="<u>Please Complete the Following Fields:</u>"  Section #2 -->
					<table width="600" border="0" cellspacing="3" cellpadding="3">
						<tr>
							<td>
								&nbsp;
							</td>
							<td>
								<strong>Name</strong>
							</td>
							<td>
								<strong>Relationship</strong>
							</td>
							<td>
								<strong>Birth Date</strong>
							</td>
							<td>
								<strong>Years Licensed</strong>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 1:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName1" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
								<asp:RequiredFieldValidator ID="valDrv1Name" runat="server" ErrorMessage="Driver #1 Name"
									ControlToValidate="txtDrvName1" Display="none" ValidationGroup="AutoQuote" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship1" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth1" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay1" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear1" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed1" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 2:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName2" MaxLength="75" TextMode="SingleLine" runat="server"
									Width="95" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship2" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth2" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay2" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
									<asp:ListItem Value="11">11</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear2" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed2" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 3:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName3" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvRelationship3" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth3" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay3" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear3" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed3" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<td>
								<strong>Driver 4:</strong>
							</td>
							<td>
								<asp:TextBox ID="txtDrvName4" MaxLength="75" TextMode="SingleLine" Width="95" runat="server" />
							</td>
							<td>
								<asp:DropDownList ID="ddlDrv4Relationship" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>Insured</asp:ListItem>
									<asp:ListItem>Spouse</asp:ListItem>
									<asp:ListItem>Child</asp:ListItem>
									<asp:ListItem>Other</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvBMonth4" runat="server">
									<asp:ListItem Value="">Month</asp:ListItem>
									<asp:ListItem Value="January">January</asp:ListItem>
									<asp:ListItem Value="February">February</asp:ListItem>
									<asp:ListItem Value="March">March</asp:ListItem>
									<asp:ListItem Value="April">April</asp:ListItem>
									<asp:ListItem Value="May">May</asp:ListItem>
									<asp:ListItem Value="June">June</asp:ListItem>
									<asp:ListItem Value="July">July</asp:ListItem>
									<asp:ListItem Value="August">August</asp:ListItem>
									<asp:ListItem Value="September">September</asp:ListItem>
									<asp:ListItem Value="October">October</asp:ListItem>
									<asp:ListItem Value="November">November</asp:ListItem>
									<asp:ListItem Value="December">December</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBDay4" runat="server">
									<asp:ListItem Value="">Day</asp:ListItem>
									<asp:ListItem Value="1">1</asp:ListItem>
									<asp:ListItem Value="2">2</asp:ListItem>
									<asp:ListItem Value="3">3</asp:ListItem>
									<asp:ListItem Value="4">4</asp:ListItem>
									<asp:ListItem Value="5">5</asp:ListItem>
									<asp:ListItem Value="6">6</asp:ListItem>
									<asp:ListItem Value="7">7</asp:ListItem>
									<asp:ListItem Value="8">8</asp:ListItem>
									<asp:ListItem Value="9">9</asp:ListItem>
									<asp:ListItem Value="10">10</asp:ListItem>
								</asp:DropDownList>
								&nbsp;
								<asp:DropDownList ID="ddlDrvBYear4" runat="server">
									<asp:ListItem Value="">Year</asp:ListItem>
									<asp:ListItem Value="1910">1910</asp:ListItem>
									<asp:ListItem Value="1911">1911</asp:ListItem>
									<asp:ListItem Value="1912">1912</asp:ListItem>
									<asp:ListItem Value="1913">1913</asp:ListItem>
									<asp:ListItem Value="1914">1914</asp:ListItem>
									<asp:ListItem Value="1915">1915</asp:ListItem>
									<asp:ListItem Value="1916">1916</asp:ListItem>
									<asp:ListItem Value="1917">1917</asp:ListItem>
									<asp:ListItem Value="1918">1918</asp:ListItem>
									<asp:ListItem Value="1919">1919</asp:ListItem>
									<asp:ListItem Value="1920">1920</asp:ListItem>
									<asp:ListItem Value="1921">1921</asp:ListItem>
									<asp:ListItem Value="1922">1922</asp:ListItem>
									<asp:ListItem Value="1923">1923</asp:ListItem>
									<asp:ListItem Value="1924">1924</asp:ListItem>
									<asp:ListItem Value="1925">1925</asp:ListItem>
									<asp:ListItem Value="1926">1926</asp:ListItem>
									<asp:ListItem Value="1927">1927</asp:ListItem>
									<asp:ListItem Value="1928">1928</asp:ListItem>
									<asp:ListItem Value="1929">1929</asp:ListItem>
									<asp:ListItem Value="1930">1930</asp:ListItem>
								</asp:DropDownList>
							</td>
							<td>
								<asp:DropDownList ID="ddlDrvYrsLicensed4" runat="server">
									<asp:ListItem Value="">Select One</asp:ListItem>
									<asp:ListItem>1</asp:ListItem>
									<asp:ListItem>2</asp:ListItem>
									<asp:ListItem>3-5</asp:ListItem>
									<asp:ListItem>5-8</asp:ListItem>
									<asp:ListItem>10-14</asp:ListItem>
									<asp:ListItem>15-50</asp:ListItem>
									<asp:ListItem>Over 50</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
					</table>
					<br />
					<table style="width: 600px;">
						<tr>
							<td>
								<br />
								<p style="text-align: justify; line-height: 17px; border: 1px solid #E3E3E3; padding: 10px;">
									<span style="font-weight: bold; text-decoration: underline;">Ticket/Accident Disclaimer</span><br />
									Have you or any other driver in your household received a ticket or accident in
									the last three years? (Failure to disclose an accident or ticket will result in
									an inaccurate quotation. It can also result disqualifying you from an insurance
									company. Some of our insurance companies only accept good driver by definition.)<br />
									<br />
									If you have gone to traffic school more than once in the last 18 months, it will
									show up on your motor vehicle report as dismissed and be charged as a point.<br />
									<br />
									If your license has been suspended for even one day in the last three years you
									will not qualify for a good driver discount (20%). You must be licensed continuously
									for three years to qualify.</p>
								<br />
							</td>
						</tr>
					</table>
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep4" runat="server" StepType="Step" Title="Step 3: Tickets &amp; Accidents">
					More Steps form controls...
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep7" runat="server" Title="Step 6: Review" StepType="Finish">
					<br />
					<p>
						Please review all your entries carefully. To make corrections or additions, you
						may go back to any previous step by either Clicking the <strong>Previous</strong>
						button or by Clicking a <strong>Step Link</strong> from the left menu.
					</p>
					<br />
					<p>
						When you are ready to submit your Auto quote to Insurance, navigate back to this
						screen (Review) and Click <strong>Finish.</strong>
					</p>
					<asp:Label ID="Label1" runat="server"></asp:Label><br />
					<p>
						&nbsp;</p>
					<p>
						When you are ready to submit your Auto quote, Click <strong>Finish.</strong>.
					</p>
					<p>
						&nbsp;</p>
				</asp:WizardStep>
				<asp:WizardStep ID="WizardStep8" runat="server" Title="Complete worksheet" StepType="Complete">
					<p>
						Congratulations! You have successfully completed the Auto Insurance Quotation Information
						Worksheet.</p>
					<br />
					<p>
						Please allow up to 48 hours for a response.</p>
					<br />
					<br />
					<p>
						If you require further assistance, please contact toll free at (800) 555-1212.</p>
					<br />
					<hr noshade color="#808080" size="1" width="94%">
					<br />
					<a style="color: #3D1804;" href="http://nowhere.com/Quote.aspx">Submit another quote
						request</a> | <a style="color: #3D1804;" href="http://nowhere.com/">Return to nowhere.com
							home</a>
					<p>
						&nbsp;</p>
					<p>
						&nbsp;</p>
					<p>
						&nbsp;</p>
				</asp:WizardStep>
			</WizardSteps>
			<SideBarButtonStyle ForeColor="#AFB9C5" />
			<SideBarStyle BackColor="#C8BEA8" Font-Size="0.9em" VerticalAlign="Top" Width="170"
				HorizontalAlign="Left" />
			<SideBarTemplate>
				<asp:DataList ID="SideBarList" runat="server" Width="170" CellPadding="7" CellSpacing="7">
					<ItemTemplate>
						<asp:LinkButton ID="SideBarButton" runat="server" ForeColor="#336699"></asp:LinkButton>
					</ItemTemplate>
					<SelectedItemStyle Font-Bold="True" ForeColor="#00CC00" Font-Underline="True" />
				</asp:DataList>
			</SideBarTemplate>
			<StartNavigationTemplate>
				<asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" Text="Next" />
			</StartNavigationTemplate>
			<NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid"
				BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
			<FinishNavigationTemplate>
				<asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
					Text="Previous" />
				<asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" ValidationGroup=""
					Text="Finish" />
			</FinishNavigationTemplate>
			<HeaderStyle BackColor="#888888" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="2px"
				Font-Bold="True" Font-Size="1.1em" ForeColor="White" HorizontalAlign="Center" />
			<StepNavigationTemplate>
				<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
					Text="Previous" />
				<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Next"
					CausesValidation="True" ValidationGroup="AutoQuote" OnClientClick />
			</StepNavigationTemplate>
			<StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" CssClass="wizardsidestep" BorderStyle="Solid"
				BorderWidth="2px" />
		</asp:Wizard>
	</div>
	</form>
</body>
</html>

Open in new window

0
 
jayschAuthor Commented:
baiju_nagori,

I pasted your code into a new web Form page and changed the JQuery path. Is there some code behind code I need to include? The wizard itself seems to run OK without referencing the code behind (
CodeFile="Wizard.aspx.vb" Inherits="Webforms_Temp_Wizard")

The JQuery function, ValidateValues, does not fire when I click next going from "List All Drivers", only the first Name textbox validation fires - nothing else. In other words, the code you just sent me is working exactly the same as my main Auto Quote page that I posted in 35733876.

The problem seems to be that your function isn't firing. Even though Custom Validator contains this setting:ClientValidationFunction="ValidateValues" - do you think that Next Step button as defined in the <StepNavigationTemplate> should contain a reference for 'OnClientClick' ?

If that's not it, there may be something in my dev environment might be causing the problem. However, when I uploaded to the Linux web server, same problem. Now I really confused.

0
 
baiju_nagoriCommented:
Hi,

There is no code behind file. The code works properly in my environment, as you can see in the screenshots.

Can you try creating a new Website and add the page?  Use the Jquery attached (although that shouldn't matter).

If it doesn't work (which I hope is not the case), then I am out of ideas.
jquery-1.2.3.min.js
0
 
jayschAuthor Commented:
Even though I can't get this solution to work in my environment, I will award the points because I'm sure it works. Thank for all your efforts.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 10
  • 6
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now