Solved

Validation doesn't fire in any but 1st MultiView Control of 3

Posted on 2007-12-04
15
1,517 Views
Last Modified: 2012-06-21
This is driving me crazy.  I've a MultiView Control dividing a web form into three sections, each with a bunch of textboxes and a Submit button.

Validation works fine in View1.  I can add and remove ValidationGroup settings and it works as expected.

In View2 and View3 validation doesn't fire at all.  Each View has a different ValidationGroup, emp, ws1 and ws2.  Validation Controls are Enabled.  I don't know what else to check.  The only thing I have not done is reinstall the OS.  Just kidding, I did that.  No, just kidding.

Any ideas?  Is there a bug in the MultiView or Validation Controls or did I miss something?


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Employer3.aspx.vb" Inherits="Employer3" MaintainScrollPositionOnPostback="true"%>
 

<!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"><title>Summer Youth Employment Program 2007</title>
 

<script type="text/javascript" src="saveRestoreForm.js"></script>

<link rel="stylesheet" type="text/css" href="css/StyleSheet.css" />
 

</head>

<body onkeydown="if (window.event.keyCode == 13) 

{

    event.returnValue=false; 

    event.cancel = true;

}">

    <form id="form1" runat="server">

<div>

        <div>

            <table border="0">

                <tr><td><img src="images/WF1_Logo009.gif" alt="WorkForce One Logo" /></td>

                    <td><div><h1>Welcome to the Summer Youth Employment Program 2008</h1></div></td>

                    <td><img src="images/CSC_Logo10.gif" alt="Children's Services Council Logo" /></td>

                </tr>

            </table>

        </div>

<br />

<hr />

<!-- a href="http://www.wf1broward.com"><img class="left" src="images/WF1_logo009.gif" alt="WorkForce One Logo"  width="237" height="80" style="margin-right:50px;"/></a>

<h1 style="float:left; width:50%;">Welcome to the Summer Youth Employment Program 2008</h1>    

<a href="http://www.cscbroward.org"><img class="right" src="images/CSC_Logo10.gif" alt="Children's Services Council Logo"  width="125" height="80"/></a-->

<br />
 

<asp:MultiView id="MultiView1" runat="server" ActiveViewIndex="0">

<!-- ###################################################################################################################################### -->

<asp:View id="View1" runat="server">
 

<div style="text-decoration: underline; text-align: center; font-weight: bold"><span style="color: #000000; clear:both;">

Step 1 of 3 <br /> Company Information:<br /></span></div>
 

<br />

<div style="text-align:center;">

            <table id="TABLE1"> <!-- <table id="TABLE1" onclick="return TABLE1_onclick()"> -->

                            <tr>

                                <td colspan="1" style="text-align: center">

                                </td>

                                <td colspan="4" style="text-align:left">

                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='Please correct the errors and click the "Submit" button again:' ValidationGroup="emp" />

                                </td>

                            </tr>
 

                            <tr>

                                <td>

                                    Employer/Organization Name:</td>

                                <td colspan="2" style="text-align: left">

                                    <asp:TextBox ID="txtEmployerName" runat="server" onfocus="if (this.value=='Employer Name'){this.value='';};return false;" onblur="if (this.value==''){this.value='Employer Name';return false;}"

                                        TabIndex="1" ToolTip="Company or Organization Name" Width="98%" MaxLength="50" AutoCompleteType="Company">Employer Name</asp:TextBox>

                                </td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:RequiredFieldValidator Enabled="True" ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmployerName"

                                        ErrorMessage="Employer/Organization Name is Required">*</asp:RequiredFieldValidator><asp:CompareValidator enabled="True" ID="CompareValidator5" runat="server" ControlToValidate="txtEmployerName"

                                        ErrorMessage="Employer/Organization Name is Required" Operator="NotEqual" ValueToCompare="Employer Name">*</asp:CompareValidator>

                                    &nbsp; &nbsp;&nbsp;&nbsp;

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Type of Organization:</td>

                                <td style="width: 309px; text-align: left;">

                                    <asp:DropDownList ID="ddlOrganizationType" runat="server" TabIndex="2">

                                        <asp:ListItem Selected="True">Select One...</asp:ListItem>

                                        <asp:ListItem>Government</asp:ListItem>

                                        <asp:ListItem>Non-Profit</asp:ListItem>

                                        <asp:ListItem>For Profit</asp:ListItem>

                                    </asp:DropDownList><asp:CompareValidator enabled="True" ID="CompareValidator4" runat="server" ControlToValidate="ddlOrganizationType"

                                        ErrorMessage="Type of Organization is Required" Operator="NotEqual" ValueToCompare="Select One...">*</asp:CompareValidator>

                                    &nbsp;&nbsp;

                                </td>

                                <td style="width: 93px">

                                </td>

                                <td style="width: 162px">

                                    &nbsp;<asp:TextBox ID="txtPriKeyEmployerID" runat="server" Width="77px" ReadOnly="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                    &nbsp;

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Federal ID #:</td>

                                <td style="text-align: left" colspan="3">

                                    <asp:TextBox ID="txtFedID" runat="server" TabIndex="3" Width="120px" onfocus="if (this.value=='XX-XXXXXXX'){this.value='';};return false;" onblur="if (this.value==''){this.value='XX-XXXXXXX';return false;}"

                                        ToolTip="9 or 13 digit Federal Tax ID Number">XX-XXXXXXX</asp:TextBox><asp:RegularExpressionValidator enabled="True" ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtFedID"

                                        ErrorMessage="A Valid Federal Tax ID is Required" ValidationExpression="\d{2}-\d{11}|\d{2}-\d{7}"

                                        Width="10px" >*</asp:RegularExpressionValidator><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFedID"

                                        ErrorMessage="A Federal Tax ID is Required" >*</asp:RequiredFieldValidator><asp:CompareValidator Enabled="false" ID="CompareValidator1" runat="server" ControlToValidate="txtFedID" ErrorMessage="Federal ID # 12-3456789 is not Valid"

                                            Operator="NotEqual" ValueToCompare="12-3456789" >*</asp:CompareValidator><asp:CompareValidator Enabled="False" ID="CompareValidator7" runat="server" ControlToValidate="txtFedID" ErrorMessage="Federal ID # 11-1111111 is not Valid"

                                                Operator="NotEqual" ValueToCompare="11-1111111" >*</asp:CompareValidator>

                                    e.g. 12-3456789 or 12-34567890123</td>

                            </tr>

                            <tr>

                                <td colspan="4">

                                    <hr />

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Contact Person - (Contract):</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtContactContract" runat="server" TabIndex="4" Width="85%" ToolTip="Person we can contact regarding the Contract between Employer and WorkForce One"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtContactContract"

                                        ErrorMessage="Contact Person - (Contract) is Required">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 93px">

                                    Title:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtContactContractTitle" runat="server" TabIndex="6" Width="75%"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtContactContractTitle"

                                        ErrorMessage="Contact Person Title is Required">*</asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Street Address:</td>

                                <td colspan="2" style="text-align: left">

                                    <asp:TextBox ID="txtCompanyStreet" runat="server" TabIndex="8" Width="88%"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator22" runat="server" ControlToValidate="txtCompanyStreet"

                                        ErrorMessage="Street Address is Required">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 162px">

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    City, State, Zip:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtCompanyCity" runat="server" TabIndex="15"></asp:TextBox>,<asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtCompanyCity"

                                        ErrorMessage="City is Required">*</asp:RequiredFieldValidator><asp:TextBox ID="txtCompanyState" runat="server" TabIndex="20" MaxLength="2" Width="20px">FL</asp:TextBox>,<asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtCompanyState"

                                        ErrorMessage="State is Required">*</asp:RequiredFieldValidator><asp:TextBox ID="txtCompanyZip" runat="server" TabIndex="25" MaxLength="5" Width="40px"></asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtCompanyZip"

                                        ErrorMessage="Zip is Required" >*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtCompanyZip"

                                        ErrorMessage="A Valid 5 or 9 digit Zip Code is Required" ValidationExpression="\d{5}(-\d{4})?">*</asp:RegularExpressionValidator></td>

                                <td style="width: 93px">

                                    </td>

                                <td style="text-align: left; width: 162px;">

                                    &nbsp;&nbsp;

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Telephone:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtCompanyContractContactTelephone" runat="server" TabIndex="50"

                                        onfocus="if (this.value=='(XXX) XXX-XXXX'){this.value='';};return false;" onblur="if (this.value==''){this.value='(XXX) XXX-XXXX';return false;}" Width="150px">(XXX) XXX-XXXX</asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCompanyContractContactTelephone"

                                        ErrorMessage="Telephone is Required">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtCompanyContractContactTelephone"

                                            ErrorMessage="A Valid Telephone Number is Required" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}.*">*</asp:RegularExpressionValidator></td>

                                <td style="width: 93px">

                                    FAX:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtCompanyContractContactFAX" runat="server" TabIndex="55" Width="75%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                    Cell:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtCompanyContractContactCell" runat="server" TabIndex="60" Width="150px"></asp:TextBox></td>

                                <td style="width: 93px">

                                    Email:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtCompanyContractContactEmail" runat="server" TabIndex="65" Width="75%"></asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtCompanyContractContactEmail"

                                        ErrorMessage="Email is Required">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCompanyContractContactEmail"

                                        ErrorMessage="A Valid Email address is Required" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                    <hr />

                                    <asp:CheckBox ID="cbSameAsAbove" runat="server" Text="Same as Above" AutoPostBack="True" TabIndex="65" /></td>

                            </tr>

                            <tr>

                                <td>

                                    Contact Person - (Program):</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtContactProgram" runat="server" TabIndex="70" Width="85%"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtContactProgram"

                                        ErrorMessage="Contact Person - (Program) is Required">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 93px">

                                    Title:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtContactProgramTitle" runat="server" TabIndex="72" Width="75%"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtContactProgramTitle"

                                        ErrorMessage="Contact (Program) is Required">*</asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Street Address:</td>

                                <td colspan="2" style="text-align: left">

                                    <asp:TextBox ID="txtContactProgramAddress" runat="server" TabIndex="75" Width="88%"></asp:TextBox>

                                    <asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator23" runat="server" ControlToValidate="txtContactProgramAddress"

                                        ErrorMessage="Street Address is Required">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 162px">

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    City, State, Zip:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtContactProgramCity" runat="server" TabIndex="80"></asp:TextBox>,<asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator19" runat="server" ControlToValidate="txtContactProgramCity"

                                        ErrorMessage="City is Required">*</asp:RequiredFieldValidator><asp:TextBox ID="txtContactProgramState" runat="server" MaxLength="2" TabIndex="85"

                                        Text="FL" Width="16px"></asp:TextBox>,<asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator20" runat="server" ControlToValidate="txtContactProgramState"

                                        ErrorMessage="State is Required">*</asp:RequiredFieldValidator><asp:TextBox ID="txtContactProgramZip" runat="server" TabIndex="90" MaxLength="5"

                                        Width="40px"></asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator21" runat="server" ControlToValidate="txtContactProgramZip"

                                        ErrorMessage="Zip is Required">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator10" runat="server"

                                        ControlToValidate="txtContactProgramZip" ErrorMessage="A Valid 5 or 9 digit Zip Code is Required"

                                        ValidationExpression="\d{5}(-\d{4})?">*</asp:RegularExpressionValidator></td>

                                <td style="width: 93px">

                                    </td>

                                <td style="text-align: left; width: 162px;">

                                    &nbsp;&nbsp;

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    Telephone:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtContactProgramPhone" runat="server" TabIndex="100" onfocus="if (this.value=='(XXX) XXX-XXXX'){this.value='';};return false;" onblur="if (this.value==''){this.value='(XXX) XXX-XXXX';return false;}"

                                        Width="150px">(XXX) XXX-XXXX</asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtContactProgramPhone"

                                        ErrorMessage="Telephone is Required">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator8" runat="server" ControlToValidate="txtContactProgramPhone"

                                            ErrorMessage="A Valid Telephone Number is Required" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}.*">*</asp:RegularExpressionValidator></td>

                                <td style="width: 93px">

                                    FAX:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtContactProgramFAX" runat="server" TabIndex="110" Width="75%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                    Cell:</td>

                                <td style="text-align: left; width: 309px;">

                                    <asp:TextBox ID="txtContactProgramCell" runat="server" TabIndex="120" Width="150px"></asp:TextBox></td>

                                <td style="width: 93px">

                                    Email:</td>

                                <td style="text-align: left; width: 162px;">

                                    <asp:TextBox ID="txtContactProgramEmail" runat="server" TabIndex="130" Width="75%"></asp:TextBox><asp:RequiredFieldValidator Enabled="False" ID="RequiredFieldValidator18" runat="server" ControlToValidate="txtContactProgramEmail"

                                        ErrorMessage="Email is Required">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator Enabled="False" ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtContactProgramEmail"

                                        ErrorMessage="A Valid Email address is Required" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="height: 38px">

                                    <hr />

                                </td>

                            </tr>

                            <tr>

                                <td>

                                    <span style="color: #ff0000">&dagger;</span> Number of Worksites Requested:</td>

                                <td style="text-align: left;" colspan="3">

                                    <asp:TextBox ID="txtWorksitesRequestedNumber" runat="server" TabIndex="140" MaxLength="2" Width="16px" ValidationGroup="emp"></asp:TextBox>

                                    <asp:RegularExpressionValidator Enabled="True" ID="RegularExpressionValidator11" runat="server" 

                                    ControlToValidate="txtWorksitesRequestedNumber" ErrorMessage="Number of Worksites Requested Must be 1 or More"

                                            ValidationExpression="\d\d?" ValidationGroup="emp">*</asp:RegularExpressionValidator>

                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtWorksitesRequestedNumber"

                                        ErrorMessage="Number of Worksites Requested is Required" ValidationGroup="emp">*</asp:RequiredFieldValidator>&nbsp; 

                                        <span style="color: #ff0000">&dagger;</span>You will complete a Job Order in Step 2 for each Worksite requested.</td>

                            </tr>

                            <tr>

                                <td>

                                    </td>

                                <td style="text-align: left; width: 309px;">

                                    &nbsp;

                                </td>

                                <td style="width: 93px">

                                </td>

                                <td style="width: 162px">

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    Organization has a contract in place with WorkForce One: &nbsp; &nbsp; &nbsp; &nbsp;

                                    &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:DropDownList ID="ddlOrgHasContract" runat="server" TabIndex="180">

                                        <asp:ListItem>Select One ...</asp:ListItem>

                                        <asp:ListItem>No</asp:ListItem>

                                        <asp:ListItem>Yes</asp:ListItem>

                                    </asp:DropDownList><asp:CompareValidator Enabled="False" ID="CompareValidator6" runat="server" ControlToValidate="ddlOrgHasContract"

                                        ErrorMessage="Organization has a contract in place... is Required" Operator="NotEqual"

                                        ValueToCompare="Select One ...">*</asp:CompareValidator></td>

                            </tr>

                            <tr><td>&nbsp;</td></tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                            <ol style="text-align:left; margin-left:5em">

                                                <li>Organization needs to enter into a contract with WorkForce One.</li>

                                                <li>Organization needs to download and submit the proper forms from the WorkForce One Website.</li>

                                                <li>The "Contact Person - Contract" above will be responsible for all communications regarding the contract.</li>

                                                <li>The "Contact Person - Program" above will be responsible for all communications regarding the program.</li>

                                                <li>Jobs requiring lifting by participants will not be considered.&nbsp;</li>

                                            </ol>

                                

                                    Please confirm that you understand all of the above points:&nbsp;&nbsp;&nbsp;

                                    &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:DropDownList ID="ddlConfirmUnderstand" runat="server" TabIndex="190">

                                        <asp:ListItem>Please Confirm...</asp:ListItem>

                                        <asp:ListItem>Yes.  I understand.</asp:ListItem>

                                    </asp:DropDownList><asp:CompareValidator Enabled="False" ID="CompareValidator2" runat="server" ControlToValidate="ddlConfirmUnderstand"

                                        ErrorMessage="You must confirm that you understand the conditions." ValueToCompare="Yes.  I understand.">*</asp:CompareValidator>

                                </td>

                            </tr>

                        </table>

                        

<br />

<br />
 

                            <asp:Button ID="btnSubmitEmployerInfo" runat="server" Text="Go To Step 2 of 3, Worksite Information -->>" ValidationGroup="emp" />&nbsp;

                        </div>
 

</asp:View>

<!-- ###################################################################################################################################### -->

<asp:View id="View2" runat="server">

            

    <div style="text-decoration: underline; text-align: center; font-weight: bold; color: #000000">

        Step 2 of 3

<br />

                            Worksite: &nbsp; #<asp:Label ID="lblWorksiteNumber" runat="server" Text="1"></asp:Label>&nbsp;

                            of &nbsp;<asp:Label ID="lblTotalWorksitesNumber" runat="server" Text="1" ToolTip="This is the number of Worksites you've requested from Step 1."></asp:Label>

<!-- end Worksite Job Order # of # LABEL     -->

<br />

<br />

    </div>

<div style="text-align:center">

            <table>

                            <tr>

                                <td colspan="4" style="text-align: center; height: 21px;">

                                    <span style="color: #ff0000">  </span>All worksites and jobs must be in compliance with Child Labor Laws

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                    <span style="color: #ff0000">&Dagger; </span>Worksite supervisor must be over 21

                                    and attend orientation for each Job Order.</td>

                            </tr>

                            <tr>

                                <td colspan="1" style="width: 138px">

                                </td>

                                <td colspan="4" style="text-align: left; padding-left: 100px;">

                                    <asp:ValidationSummary ID="ValidationSummary3" runat="server"

                                        ValidationGroup="ws1" Width="528px" HeaderText='Please correct the errors and click the "Submit" button again:' />

                                </td>

                            </tr>

                            <tr>

                                <td style="font-weight: bold; text-align: left" colspan="4">

                                    Worksite information where participant will report on the first day:&nbsp;</td>

                            </tr>

                            <tr>

                                <td colspan="3">&nbsp;<!-- REMOVE THIS QUESTION>

                                    Is this a site for a participant with a diagnosed developmental disability (S.T.E.P.S.)?

                                </td>

                                <td style="text-align: left"><asp:DropDownList ID="ddlStepsSite" runat="server" TabIndex="1" ValidationGroup="ws1">

                                    <asp:ListItem>Select One...</asp:ListItem>

                                    <asp:ListItem>No</asp:ListItem>

                                    <asp:ListItem>Yes</asp:ListItem>

                                </asp:DropDownList>

                                    <asp:CompareValidator Enabled="False" ID="CompareValidator8" runat="server" ControlToValidate="ddlStepsSite"

                                        ErrorMessage="We are currently only accepting Job Orders for Youth, 16-21, with developmental disabilities for the S.T.E.P.S. program." ValidationGroup="ws1" ValueToCompare="Yes">*</asp:CompareValidator>

                                                < REMOVE THIS QUESTION -->

                                </td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    Worksite Name:</td>

                                <td style="text-align: left; width: 284px;" colspan="2">

                                    <asp:TextBox ID="txtWorksiteName" runat="server" TabIndex="5" Width="300px" ValidationGroup="ws1"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtWorksiteName"

                                        ErrorMessage="Worksite Name is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator></td>

                                <td>

                                    <asp:TextBox ID="txtForeignKeyWsEmployerID" runat="server" TabIndex="-1" Width="80px" ReadOnly="True" Visible="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                    <asp:TextBox ID="txtPriKeyWorksiteID" runat="server" TabIndex="-1" Width="80px" ReadOnly="True" Visible="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                </td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    Worksite Address:</td>

                                <td style="text-align: left; width: 284px;">

                                    <asp:TextBox ID="txtWorksiteAddress" runat="server" TabIndex="10" Width="250px" ValidationGroup="ws1"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtWorksiteAddress"

                                        ErrorMessage="Worksite Address is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 172px">

                                    Worksite Supervisor:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupervisor" runat="server" TabIndex="60" ValidationGroup="ws1" Width="250px"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ControlToValidate="txtWorksiteSupervisor"

                                        ErrorMessage="Worksite Supervisor is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    City:</td>

                                <td style="text-align: left; width: 284px;">

                                    <asp:TextBox ID="txtWorksiteCity" runat="server" TabIndex="20" Width="250px" ValidationGroup="ws1"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtWorksiteCity"

                                        ErrorMessage="Worksite City is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 172px">

                                    Title:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupTitle" runat="server" TabIndex="70" ValidationGroup="ws1" Width="250px"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="txtWorksiteSupTitle"

                                        ErrorMessage="Worksite Supervisor Title is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    State:</td>

                                <td style="text-align: left; width: 284px;">

                                    <asp:TextBox ID="txtWorksiteState" runat="server" TabIndex="30" MaxLength="2" Width="20px" ValidationGroup="ws1">FL</asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txtWorksiteState"

                                        ErrorMessage="Worksite State is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                                <td style="width: 172px">

                                    Telephone:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupTelephone" runat="server" TabIndex="80" ValidationGroup="ws1" Width="250px"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ControlToValidate="txtWorksiteSupTelephone"

                                        ErrorMessage="Worksite Telephone is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtWorksiteSupTelephone"

                                        ErrorMessage="A Valid Telephone Number is Required" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}.*"

                                        ValidationGroup="ws1">*</asp:RegularExpressionValidator>

                                </td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    Zip:</td>

                                <td style="text-align: left; width: 284px;">

                                    <asp:TextBox ID="txtWorksiteZip" runat="server" TabIndex="40" MaxLength="5" Width="45px" ValidationGroup="ws1"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="txtWorksiteZip"

                                        ErrorMessage="RequiredFieldValidator" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtWorksiteZip"

                                        ErrorMessage="A Valid 5 or 9 digit Zip Code is Required" ValidationExpression="\d{5}(-\d{4})?"

                                        ValidationGroup="ws1">*</asp:RegularExpressionValidator></td>

                                <td style="width: 172px">

                                    FAX:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupFAX" runat="server" TabIndex="90" Width="250px"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                    On a Bus Line?</td>

                                <td style="text-align: left; width: 284px;">

                                    <asp:DropDownList ID="ddlWorksiteOnBusline" runat="server" TabIndex="50" ValidationGroup="ws1">

                                        <asp:ListItem>Select One...</asp:ListItem>

                                        <asp:ListItem>No</asp:ListItem>

                                        <asp:ListItem>Yes</asp:ListItem>

                                    </asp:DropDownList>

                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="ddlWorksiteOnBusline"

                                        ErrorMessage="On a Bus Line is Required" Operator="NotEqual" ValidationGroup="ws1"

                                        ValueToCompare="Select One...">*</asp:CompareValidator>

                                </td>

                                <td style="width: 172px">

                                    Cell:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupCell" runat="server" TabIndex="100" Width="250px"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td style="width: 138px">

                                </td>

                                <td style="width: 284px">

                                </td>

                                <td style="width: 172px">

                                    Email:</td>

                                <td style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteSupEmail" runat="server" TabIndex="110" ValidationGroup="ws1" Width="250px"></asp:TextBox>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" ControlToValidate="txtWorksiteSupEmail"

                                        ErrorMessage="Worksite Email is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtWorksiteSupEmail"

                                        ErrorMessage="A valid Email address is Required" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"

                                        ValidationGroup="ws1">*</asp:RegularExpressionValidator></td>

                            </tr>

                            <tr>

                                <td colspan="2">

                                    Number of employees this Worksite Supervisor currently supervises:

                                </td>

                                <td colspan="2" style="text-align: left">

                                    <asp:TextBox ID="txtWorksiteEmpsSupervised" runat="server" MaxLength="3" TabIndex="120" Width="24px" ValidationGroup="ws1"></asp:TextBox>

                                    <asp:RangeValidator type="Double" Enabled="True" ID="RangeValidator1" runat="server" ControlToValidate="txtWorksiteEmpsSupervised"

                                        ErrorMessage="Supervisor must supervise at least one employee" MaximumValue="999"

                                        MinimumValue="1" ValidationGroup="ws1">*</asp:RangeValidator>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator32" runat="server" ControlToValidate="txtWorksiteEmpsSupervised"

                                        ErrorMessage="Number of employees supervised is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                    &nbsp;&nbsp;

                                </td>

                            </tr>

                            <tr>

                                <td colspan="2" style="vertical-align: text-top">

                                    &nbsp;<span style="color: #ff0000">  </span>Number of Job <span

                                        style="text-decoration: underline">Titles</span> at <em><strong>this</strong></em>

                                    Worksite?<br />

                                </td>

                                <td colspan="2" style="text-align: left">

                                    <asp:TextBox ID="txtWorksitePositionTypesNumber" runat="server" MaxLength="3" TabIndex="130"

                                        Width="24px" ToolTip="3 stockers &amp; 5 filers = 2 Types" ValidationGroup="ws1"></asp:TextBox>

                                    <asp:RegularExpressionValidator Enabled="True" ID="RegularExpressionValidator12" runat="server"

                                        ControlToValidate="txtWorksitePositionTypesNumber" ErrorMessage="Number of Worksites Requested Must be 1 or More"

                                        ValidationExpression="[1-9][1-9]?" ValidationGroup="ws1">*</asp:RegularExpressionValidator>

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator33" runat="server" ControlToValidate="txtWorksitePositionTypesNumber"

                                        ErrorMessage="Number of Job Titles is Required" ValidationGroup="ws1">*</asp:RequiredFieldValidator>

                                </td>

                            </tr>

                            <tr>

                            <td colspan="4" style="text-align:center;">

                            (<span style="font-size: 10pt; color: Maroon;">For example, if you have 1 clerical position for 3 youths

                                        and 1 custodial position for 5 youths, enter 2.</span>)

                             <br />

                             <span style="color: #ff0000"> </span> You will complete one Job Description for each "Title" on the next

                                        page and indicate how many positions are available for each Job Title.

                            </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                    <asp:Button ID="btnSubmitWorksite" runat="server" Text="Submit Worksite Information"

                                        ValidationGroup="ws1"  AccessKey=""/>

                                </td>

                            </tr>

                        </table>

</div>

        </asp:View>

<!-- ###################################################################################################################################### -->

        <asp:View id="View3" runat="server">
 

                        <!--  Job Position LABEL  -->

                        <div style="color: #000000; font-weight: bold; text-align: center; text-decoration: underline">

                            Job Title: &nbsp;#<asp:Label ID="lblPosition1Number" runat="server" Text="1"></asp:Label>

                            &nbsp;of &nbsp;<asp:Label ID="lblTotalWSPositionTypes" runat="server" Text="1"></asp:Label>

                            at Worksite / Location: &nbsp;#<asp:Label ID="lblWorksite1Number" runat="server">1</asp:Label></div>

                        <!--  end Job Position LABEL    -->

<table>

    <tr>

        <td colspan="1" style="text-align: left">

        </td>

        <td colspan="4" style="text-align: left; padding-left: 100px;">

                                    <asp:ValidationSummary ID="ValidationSummary2" runat="server" Width="465px" ValidationGroup="ws2" HeaderText='Please correct the errors and click the "Submit" button again:' />

            Location: &nbsp;<asp:Label ID="lblWorksiteName" runat="server" Text="Worksite Name" Font-Bold="True"></asp:Label></td>

    </tr>

                            <tr>

                                <td>

                                    Job Title:</td>

                                <td style="text-align: left" colspan="2">

                                    <asp:TextBox ID="txtWorksiteJobTitle" runat="server" TabIndex="200" Width="98%" MaxLength="50"

                                        ValidationGroup="ws2"></asp:TextBox></td>

                                <td style="width: 402px; text-align: left">

                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="txtWorksiteJobTitle"

                                        ErrorMessage="Job Title is Required" ValidationGroup="ws2">*</asp:RequiredFieldValidator>

                                    &nbsp;&nbsp;<asp:TextBox ID="txtForeignKeyPosEmployerID" runat="server" Width="80px" ReadOnly="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                    <asp:TextBox ID="txtForeignKeyPosWorksiteID" runat="server" Width="80px" ReadOnly="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                    <asp:TextBox ID="txtPriKeyPositionID" runat="server" Width="80px" ReadOnly="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="3" style="text-align: right">

                                    Number of Positions available for this Job Title at this Location:&nbsp;

                                </td>

                                <td style="width: 402px; text-align: left;">

                                    <asp:TextBox ID="txtWorksiteJobTitlePositionsNumber" runat="server" MaxLength="3"

                                        TabIndex="210" ToolTip="3 stockers &amp; 5 filers = 8 positions" Width="24px"

                                        ValidationGroup="ws2" onfocus="if (this.value=='0'){this.value='';};return false;" onblur="if (this.value==''){this.value='0';return false;}"></asp:TextBox><asp:RangeValidator Enabled="True" ID="RangeValidator3" runat="server" ControlToValidate="txtWorksiteJobTitlePositionsNumber"

                                        ErrorMessage="Number of Positions available must be at least 1" MaximumValue="99"

                                        MinimumValue="1" ValidationGroup="ws2">*</asp:RangeValidator><asp:RequiredFieldValidator Enabled="True" ID="RequiredFieldValidator30" runat="server" ControlToValidate="txtWorksiteJobTitlePositionsNumber"

                                            ErrorMessage="RequiredFieldValidator" ValidationGroup="ws2">*</asp:RequiredFieldValidator>&nbsp;

                                    <asp:TextBox ID="txtIsAnyCheckboxChecked" runat="server" ValidationGroup="ws2"

                                        Visible="False"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                    Dress Code:</td>

                                <td style="text-align: left; width: 126px;">

                                    <asp:DropDownList ID="ddlDressCode" runat="server" TabIndex="220">

                                        <asp:ListItem>Select One...</asp:ListItem>

                                        <asp:ListItem>None or Casual Dress</asp:ListItem>

                                        <asp:ListItem>Business Casual</asp:ListItem>

                                        <asp:ListItem>Business Dress Required</asp:ListItem>

                                    </asp:DropDownList></td>

                                <td>

                                    Work Hours:</td>

                                <td style="text-align: left; width: 402px;">

                                    <asp:DropDownList ID="ddlWorkHours" runat="server" TabIndex="240">

                                        <asp:ListItem>Select One...</asp:ListItem>

                                        <asp:ListItem>8:00 a.m. - 2:00 p.m.</asp:ListItem>

                                        <asp:ListItem>9:00 a.m. - 3:00 p.m.</asp:ListItem>

                                        <asp:ListItem>10:00 a.m. - 4:00 p.m.</asp:ListItem>

                                        <asp:ListItem>12:00 Noon - 6:00 p.m.</asp:ListItem>

                                    </asp:DropDownList><asp:CompareValidator Enabled="True" ID="CompareValidator11" runat="server" ControlToValidate="ddlWorkHours"

                                        ErrorMessage="Work Hours are Required" Operator="NotEqual" ValidationGroup="ws2"

                                        ValueToCompare="Select One...">*</asp:CompareValidator>&nbsp;

                                    <asp:TextBox ID="txtWeekdaysChecked" runat="server" ValidationGroup="ws2" Visible="False"

                                        Width="10px" CausesValidation="True"></asp:TextBox>

                                    <asp:TextBox ID="txtSaturdaysChecked" runat="server" ValidationGroup="ws2" Visible="False"

                                        Width="10px"></asp:TextBox>

                                    <asp:TextBox ID="txtSundaysChecked" runat="server" Visible="False" Width="10px"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                    Indoor / Outdoor</td>

                                <td style="text-align: left; width: 126px;">

                                    <asp:DropDownList ID="ddlIndoorOutdoor" runat="server" Width="173px" TabIndex="230">

                                        <asp:ListItem>Select One...</asp:ListItem>

                                        <asp:ListItem>Indoor</asp:ListItem>

                                        <asp:ListItem>Outdoor</asp:ListItem>

                                        <asp:ListItem>Some  of each</asp:ListItem>

                                    </asp:DropDownList></td>

                                <td>

                                    &nbsp; <span style="color: #ff0000">! </span>

                                    Weekdays:</td>

                                <td style="text-align: left; width: 402px;">

                                    <asp:CheckBox ID="cbWeekdays" runat="server" TabIndex="250" />

                                    &nbsp;&nbsp; <span style="color: red">&Dagger;</span> Days youth will be expected to work.</td>

                            </tr>

                            <tr>

                                <td>

                                </td>

                                <td style="width: 126px">

                                </td>

                                <td>

                                    <span style="color: #ff0000">! </span>

                                    Saturdays:</td>

                                <td style="text-align: left; width: 402px;">

                                    <asp:CheckBox ID="cbSaturdays" runat="server" TabIndex="260" />

                                    &nbsp; &nbsp; &nbsp;&nbsp; Check all that apply.</td>

                            </tr>

                            <tr>

                                <td>

                                </td>

                                <td style="width: 126px">

                                </td>

                                <td>

                                    <span style="color: #ff0000">! </span>

                                    Sundays:</td>

                                <td style="text-align: left; width: 402px;">

                                    <asp:CheckBox ID="cbSundays" runat="server" TabIndex="270" /></td>

                            </tr>

                            <tr>

                                <td>

                                </td>

                                <td colspan="2">

                                    Background Check Required:</td>

                                <td style="text-align: left; width: 402px;">

                                    <asp:DropDownList ID="ddlBackgroundCheck" runat="server" TabIndex="280" Width="369px">

                                        <asp:ListItem>Select One...</asp:ListItem>

                                        <asp:ListItem>None</asp:ListItem>

                                        <asp:ListItem>Basic FDLE</asp:ListItem>

                                        <asp:ListItem>Level 2 (Required for Child Care or Camps with youths under 5</asp:ListItem>

                                    </asp:DropDownList><asp:CompareValidator Enabled="True" ID="CompareValidator10" runat="server" ControlToValidate="ddlBackgroundCheck"

                                        ErrorMessage="Background Check Required is a Required field" Operator="NotEqual" ValidationGroup="ws2" ValueToCompare="Select One...">*</asp:CompareValidator></td>

                            </tr>

                            <tr>

                                <td>

                                    &nbsp;</td>

                                <td style="width: 126px">

                                </td>

                                <td>

                                </td>

                                <td style="width: 402px">

                                </td>

                            </tr>

                            <tr>

                                <td style="text-align: left" colspan="4">

                                    Job Description / Primary Job Duties (At least one required for each Job Title):</td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    1.

                                    <asp:TextBox ID="txtJobDescriptionPrim1" runat="server" MaxLength="80" TabIndex="300"

                                        Width="90%" onfocus="if (this.value=='Brief, bullet form description of primary job duty. 70 characters max.'){this.value='';};return false;" onblur="if (this.value==''){this.value='Brief, bullet form description of primary job duty. 70 characters max.';return false;}"

                                        ValidationGroup="ws2">Brief, bullet form description of primary job duty. 70 characters max.</asp:TextBox><asp:RequiredFieldValidator enabled="True" ID="RequiredFieldValidator31" runat="server" ControlToValidate="txtJobDescriptionPrim1"

                                        ErrorMessage="At least one Job Description / Primary Duty is Required" ValidationGroup="ws2">*</asp:RequiredFieldValidator><asp:CompareValidator enabled="True" ID="CompareValidator9" runat="server" ControlToValidate="txtJobDescriptionPrim1"

                                        ErrorMessage="Primary Duties Required" Operator="NotEqual" ValidationGroup="ws2"

                                        ValueToCompare="Brief, bullet form description of primary job duty. 70 characters max.">*</asp:CompareValidator>

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    2.

                                    <asp:TextBox ID="txtJobDescriptionPrim2" runat="server" MaxLength="80" TabIndex="310"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    3.

                                    <asp:TextBox ID="txtJobDescriptionPrim3" runat="server" MaxLength="80" TabIndex="320"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    4.

                                    <asp:TextBox ID="txtJobDescriptionPrim4" runat="server" MaxLength="80" TabIndex="330"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    5.

                                    <asp:TextBox ID="txtJobDescriptionPrim5" runat="server" MaxLength="80" TabIndex="340"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                </td>

                                <td style="width: 126px">

                                </td>

                                <td>

                                </td>

                                <td style="width: 402px">

                                </td>

                            </tr>

                            <tr>

                                <td style="text-align: left" colspan="4">

                                    Secondary Job Duties to keep Applicant busy if/when Primary Duties are complete:</td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    1.

                                    <asp:TextBox ID="txtJobDescriptionSec1" runat="server" MaxLength="85" TabIndex="400"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    2.

                                    <asp:TextBox ID="txtJobDescriptionSec2" runat="server" MaxLength="85" TabIndex="410"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    3.

                                    <asp:TextBox ID="txtJobDescriptionSec3" runat="server" MaxLength="85" TabIndex="420"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    4.

                                    <asp:TextBox ID="txtJobDescriptionSec4" runat="server" MaxLength="85" TabIndex="430"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: left">

                                    5.

                                    <asp:TextBox ID="txtJobDescriptionSec5" runat="server" MaxLength="85" TabIndex="440"

                                        Width="90%"></asp:TextBox></td>

                            </tr>

                            <tr>

                                <td>

                                </td>

                                <td style="width: 126px">

                                </td>

                                <td>

                                </td>

                                <td style="width: 402px">

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                    <asp:Button ID="btnSubmitPosition" runat="server" Text="Submit Position" ValidationGroup="ws2" /></td>

                            </tr>

                            <tr>

                                <td style="text-align: center" colspan="4">

                                    &nbsp; &nbsp;

                                    <asp:Button ID="btnAddNewPosition" runat="server" Text="Add Next Position to THIS Worksite" TabIndex="600" Visible="False" Width="243px" ValidationGroup="ws2" /></td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

<asp:Button ID="btnAddNewWorksite" runat="server" Text="Add Next Worksite" TabIndex="700" Visible="False" ValidationGroup="ws2" />

                                </td>

                            </tr>

                            <tr>

                                <td colspan="4" style="text-align: center">

                                    &nbsp;&nbsp;

                                    &nbsp;&nbsp;&nbsp;<asp:Button ID="btnSubmit" runat="server" Text="Final Submit" Visible="False" /></td>

                            </tr>

                        </table>
 

        </asp:View>

<!-- ###################################################################################################################################### -->

        <asp:View ID="View4" runat="server">

        

        <div style="font-size: 24pt; text-align: center">

                            Thank you!<br />

                            <asp:Label ID="lblPage3EmployerName" runat="server"></asp:Label>

                            <br />

                            <br />

                        </div>

                        <div style="text-align: center; font-size: large; color: Black; margin-left: 100px;

                            margin-right: 100px">

                            Write down this confirmation number in case you need to contact us in reference

                            to your applicantion:

                            <br />

                            <asp:Label ID="lblEmployerConfirmationCode" runat="server" Text="Label" ForeColor="Blue"></asp:Label>

                        </div>

                        <br />

                        <div style="text-align:center">

             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"

                EmptyDataText="There are no data records to display." BackColor="White" BorderColor="#006D75" BorderStyle="Solid" BorderWidth="1px" CellPadding="5">

                <Columns>

                    <asp:BoundField DataField="txtWorksiteJobTitlePositionsNumber" HeaderText="Number of Positions" />

                    <asp:BoundField DataField="txtWorksiteJobTitle" HeaderText="Job Title" />

                    <asp:BoundField DataField="txtWorksiteName" HeaderText="Worksite" />

                </Columns>

                <FooterStyle BackColor="White" ForeColor="#000066" />

                <RowStyle ForeColor="#000066" BorderColor="Teal" BorderStyle="Solid" BorderWidth="1px" />

                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />

                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />

                <HeaderStyle BackColor="#006D75" Font-Bold="True" ForeColor="White" />

            </asp:GridView>

            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SYEP2007ConnectionString1 %>"

                ProviderName="<%$ ConnectionStrings:SYEP2007ConnectionString1.ProviderName %>"

                SelectCommand="SELECT JobTitles.txtWorksiteJobTitlePositionsNumber,JobTitles.txtWorksiteJobTitle,Worksites.txtWorksiteName FROM JobTitles INNER JOIN Worksites ON Worksites.keyWorksiteID = JobTitles.keyWorksiteID WHERE (JobTitles.keyEmployerID = @parmEmployerID) ORDER BY JobTitles.txtWorksiteJobTitle">

                <SelectParameters>

                    <asp:ControlParameter ControlID="txtForeignKeyPosEmployerID" Name="parmEmployerID"

                        PropertyName="Text" />

                </SelectParameters>

            </asp:SqlDataSource>

            </div>

<br />

                        <table style="margin-left:auto; margin-right:auto;">

                            <tr>

                                <td>

                                    <div style="color: black; text-align: left">

                                        <asp:Literal ID="literalPage3" runat="server" /></div>

                                </td>

                            </tr>

                        </table>

                        <br />

                        <br />

                        

<%--                        <script type="text/javascript" language="javascript"> function print(){ alert("No More Tsunami"); } 

                        </script> 

--%>            <div style="text-align:center"><asp:Button ID="btnPrint" runat="server" Text="Print Page"  OnClientClick="javascript:window.print()" /></div>

            <div style="text-align:center"><input type="button" value="Close Window" onclick="javascript:window.close();" /></div>

                

                <br />

                <br />

                        <div style="font-size: 12pt; text-align: center; color: #000000">

                            For further information contact Workforce One

                            <br />

                            at (954) 535-2300</div>

                            <br />

                        <div style="font-family: Times New Roman; font-size: 14pt; text-align: center; color: #000000">

                                                or email 

                    <a href="mailto:aansola@wf1broward.com?subject=Summer Youth Employment Program 2007 Employer Application&cc=dmegnin@wf1broward.com&body=Dear Andy Ansola,%0A%0A%0A%0A">

                    Anthony Carter

                    </a> 

                        </div>

                        <br />

                        <br />

                        <br />

                        <div style="text-align:center">Copyright &copy; 2007 WorkForce One</div>

        </asp:View>

    </asp:MultiView>

    

    </div>

    </form>

</body>

</html>

Open in new window

0
Comment
Question by:megnin
  • 10
  • 3
15 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 20412237
Does that mean that the validation is only working for the first view, no matter what the active view is?

Bob
0
 
LVL 1

Author Comment

by:megnin
ID: 20412454
Yes.  The first view is for "employer info". It's filled out and submitted, validation works fine.  
Then the second view is visible and it's filled out and submitted, but no validation fires.

Now the third view validation is firing, but the second is still not firing.  How wierd is that?

At first I was thinking that perhaps the ISVALID was somehow being set from the first view for the whole page, but that doesn't seem to be the case now.

View1 - firing on submit button
View2 - not firing at all - goes straight to View3 on submit button
View3 - Validation firing and working fine.

I have ValidationGroup set on the Validation Controls and Submit Buttons on each View respectively: emp, ws1 and ws2

The ValidationGroup doesn't seem to do much on the Textbox controls themselves that the Validation Controls are attached to.  Should the ValidationGroup be set on both the Validation Control as well as the TextBox Control that is being validated.  I ask because I think I have some of the TextBoxes in View1 with the ValidationGroup not set and they still work and in the View3 they are set and also work fine.  In View2 nothing fires regardless.
0
 
LVL 1

Author Comment

by:megnin
ID: 20412595
I just did a full text search to verify that I didn't have any ValidationGroup assignments out of place.  They were all correctly placed.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 20412817
You could test the validation for view 2, by temporarily creating a separate page (if possible) without the MultiView.

Bob
0
 
LVL 1

Author Comment

by:megnin
ID: 20413068
Good idea.  I'll do that.
0
 
LVL 1

Author Comment

by:megnin
ID: 20413123
I copied View2 into a new .aspx page and validation worked perfectly.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 20413141
Are the validators defined inside or outside of View #2?

Bob
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

by:megnin
ID: 20413148
I mean the contents of View2 without the multiview.
0
 
LVL 1

Author Comment

by:megnin
ID: 20413173
They are defined on each TextBox control:


                            <tr>

                                <td style="width: 138px">

                                    Worksite Name:</td>

                                <td style="text-align: left;" colspan="2">

                                    <asp:TextBox ID="txtWorksiteName" runat="server" TabIndex="5" Width="300px" ValidationGroup="WS1"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtWorksiteName"

                                        ErrorMessage="Worksite Name is Required" ValidationGroup="WS1" SetFocusOnError="True">*</asp:RequiredFieldValidator></td>

                                <td>

                                    <asp:TextBox ID="txtForeignKeyWsEmployerID" runat="server" TabIndex="-1" Width="80px" ReadOnly="True" Visible="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                    <asp:TextBox ID="txtPriKeyWorksiteID" runat="server" TabIndex="-1" Width="80px" ReadOnly="True" Visible="True" BorderColor="Red" BorderStyle="Dotted"></asp:TextBox>

                                </td>

                            </tr>

Open in new window

0
 
LVL 1

Author Comment

by:megnin
ID: 20413190
The entire webform is in my first post.
0
 
LVL 1

Author Comment

by:megnin
ID: 20414997
Using EI 7.0 and Firefox 2.0.0.11 I get the exact same results.
0
 
LVL 1

Author Comment

by:megnin
ID: 20415322
Never mind. I found the problem.
0
 
LVL 1

Accepted Solution

by:
megnin earned 0 total points
ID: 20415477
The problem turned out to be a misformed table row.  The ValidationSummary was on that row and the misformed row was preventing any of the validation from working.  How wierd is that?
The table has 4 columns and there was an extra <td></td> before the <td colspan="4"> where the ValidationSummary existed.
I guess it was pushing the ValidationSummary outside the scope of the table.
0
 
LVL 1

Expert Comment

by:modus_operandi
ID: 20437982
Closed, 500 points refunded.
modus_operandi
EE Moderator
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now