Capture content from a custom step in the CreateUserWizard

rcowen00
rcowen00 used Ask the Experts™
on
I am attempting to capture the content of a field from the CreateUserWizard.  The field is on a custom step that I added to the wizard that has an id of VendorInformation.  Any help is greatly appreciated.

This is the line that I am trying to get the content to
'delivery_line_1': $('#<%=CreateUserWizard.VendorInformation.ContentTemplateContainer.FindControl("street").ClientID %>').val(),

Open in new window


This is the step of the CreateUserWizard that I am getting the content from
<asp:WizardStep ID="VendorInformation" runat="server">

                    <br />
                    <asp:Label ID="Label5" runat="server" Text="* Denotes required field" 
                        Font-Bold="True" Font-Size="Small"></asp:Label>
                        <asp:ValidationSummary ID="vldSummaryTax" runat="server" Font-Bold="True" 
                                                    Font-Size="Small" ForeColor="Red" />
                    <table class="center">
                        <tr>
                            <th colspan="3">Vendor Information</th>
                        </tr>
                        <tr>
                            <th colspan="3">
                                <asp:HyperLink ID="hypRemember" runat="server" Font-Size="Small" 
                                    NavigateUrl="RecoverPassword.aspx">Remember my login by email address.</asp:HyperLink></th>
                        </tr>
                        <tr>
                            <td class="style43">First Name:*</td>
                            <td>
                                <asp:RequiredFieldValidator ID="vldFirst" runat="server" 
                                    ControlToValidate="txtVendorFirstName" CssClass="ValidationError" 
                                    Display="Dynamic" ErrorMessage="First Name is required." Font-Size="Large">*</asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtVendorFirstName" MaxLength="50" 
                                     TabIndex="1" EnableViewState="True" />
                            </td>
                        </tr> 
                        <tr>
                            <td class="style43">Last Name:*</td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                    ControlToValidate="txtVendorLastName" CssClass="ValidationError" 
                                    Display="Dynamic" ErrorMessage="Last Name is required." Font-Size="Large">*</asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtVendorLastName" MaxLength="50" 
                                    tabIndex="2" />
                            </td>
                        </tr>  
                        <tr>
                            <td class="style43">Company Name:</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:TextBox runat="server" ID="txtCompanyName" MaxLength="50" TabIndex="3" />
                            </td>
                        </tr>  
                        <tr>
                            <td class="style43">Address:*</td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                    ControlToValidate="street" CssClass="ValidationError" Display="Dynamic" 
                                    ErrorMessage="Address is required." Font-Size="Large">*</asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="street" MaxLength="50" TabIndex="4" 
                                    ClientIDMode="Static" />
                            </td>
                        </tr> 
                        <tr>
                            <td class="style43">Address 2:</td>
                            <td class="style19">
                                &nbsp;</td>
                            <td>
                                <asp:TextBox runat="server" ID="street2" MaxLength="50" TabIndex="5" />
                                
                            </td>
                        </tr>  
                        <tr>
                            <td class="style43">City:*</td>
                            <td class="style19">
                                <asp:RequiredFieldValidator ID="vldCity" runat="server" 
                                    ControlToValidate="city" CssClass="ValidationError" Display="Dynamic" 
                                    ErrorMessage="City is required." Font-Size="Large">*</asp:RequiredFieldValidator>
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="city" MaxLength="25" TabIndex="6" 
                                    ClientIDMode="Static" />
                            </td>
                        </tr> 
                        
                        <tr>
                            <td class="style43">State:*</td>
                            <td class="style19">
                                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                                    ControlToValidate="ddState" CssClass="ValidationError" Display="Dynamic" 
                                    ErrorMessage="State is required" Font-Size="Large" Operator="NotEqual" 
                                    ValueToCompare=" (Select a State)">*</asp:CompareValidator>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddState" runat="server" DataSourceID="StateList" 
                                    DataTextField="StateName" DataValueField="StateAbbr" 
                                    AppendDataBoundItems="True" TabIndex="7" CssClass="dropdown" 
                                    ClientIDMode="Static">
                                    <asp:ListItem Value=" (Select a State)" Selected="True"> (Select a State)</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>            
                         <tr>
                            <td class="style43">Zip:*</td>
                             <td class="style19">
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                     ControlToValidate="zip" CssClass="ValidationError" Display="Dynamic" 
                                     ErrorMessage="Zip is required." Font-Size="Large">*</asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                                     ControlToValidate="zip" CssClass="ValidationError" Display="Dynamic" 
                                     ErrorMessage="5 digits required" Font-Size="Large" 
                                     ValidationExpression="^\d{5}$">*</asp:RegularExpressionValidator>
                             </td>
                            <td>
                                <asp:TextBox runat="server" ID="zip" MaxLength="25" TabIndex="8" 
                                    ClientIDMode="Static" />
                            </td>
                        </tr>
                       
                             <tr>
                                 <td class="style19" colspan="3">
                                     &nbsp;</td>
                        </tr>

		     <tr>
                            <td class="style43">
                                I am a(n): *</td>
                                 <td class="style19">
                                     <asp:CompareValidator ID="CompareValidator8" runat="server" 
                                         ControlToValidate="ddVendorType" CssClass="ValidationError" Display="Dynamic" 
                                         EnableTheming="True" ErrorMessage="Vendor type required." 
                                         Operator="NotEqual" ValueToCompare="(Select)">*</asp:CompareValidator>
                                 </td>
                            <td>
                                <asp:DropDownList ID="ddVendorType" runat="server" 
                                    DataSourceID="VendorTypeList" DataTextField="VendorTypeName" 
                                    DataValueField="VendorTypeKey" TabIndex="10" CssClass="dropdown"
                                    AppendDataBoundItems="True">
                                    <asp:ListItem Selected="True">(Select)</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style43">
                                I am experienced with:*</td>
                            <td class="style19">
                                <asp:CustomValidator ID="vldPropTypeNoneSelected" runat="server" 
                                    CssClass="ValidationError" Display="Dynamic" 
                                    ErrorMessage="At least one property type experience must be selected." 
                                    >*</asp:CustomValidator>
                            </td>
                            <td>
                                <asp:CheckBox ID="ckResidential" runat="server" Text="Residential" />
                                <asp:CheckBox ID="ckCommercial" runat="server" Text="Commercial" />
                            </td>
                        </tr>
                          </table>
                          
                       <table> 
                           <tr>
                                <th colspan="9">Contact Information</th>
                                </tr>
                                <tr>
                                       <td class="style36">
                                           &nbsp;</td>
                                       <td class="style42">
                                           Make Primary
                                       </td>
                                       <td class="style40">
                                           &nbsp;</td>
                                       <td class="style27" style="margin-left: 40px">
                                           &nbsp;</td>
                                       <td>
                                           &nbsp;</td>
                                       <td style="margin-left: 40px" class="style26">
                                           &nbsp;</td>
                                       <td style="margin-left: 40px">
                                           &nbsp;</td>
                                       <td style="margin-left: 40px">
                                           &nbsp;</td>
                                       <td class="style41" style="margin-left: 40px; ">
                                           &nbsp;</td>
                                   </tr>
                                   <tr>
                                       <td class="style36">
                                           Business Telephone:*&nbsp;
                                       </td>
                                       <td class="style42">
                                           <asp:CheckBox ID="ckPrimBus" runat="server" />
                                           <asp:CustomValidator ID="vldPrimaryTypeBothSelected" runat="server" 
                                               CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Only one phone number can be listed as primary." 
                                               Font-Size="Large">*</asp:CustomValidator>
                                       </td>
                                       <td class="style40" style="margin-left: 40px">
                                           <asp:TextBox ID="txtBusArea" runat="server" Height="16px" MaxLength="3" 
                                               TabIndex="11" Width="30px"></asp:TextBox>
                                       </td>
                                       <td class="style27">
                                           <asp:RequiredFieldValidator ID="vldBusArea" runat="server" 
                                               ControlToValidate="txtBusArea" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Business area code required" Font-Size="Medium">*</asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator ID="vld3BusArea" runat="server" 
                                               ControlToValidate="txtBusArea" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="3 digits required for business area code" Font-Size="Medium" 
                                               ValidationExpression="^\d{3}$">*</asp:RegularExpressionValidator>
                                       </td>
                                       <td style="margin-left: 40px">
                                           <asp:TextBox ID="txtBusPrefix" runat="server" Height="16px" MaxLength="3" 
                                               TabIndex="12" Width="30px"></asp:TextBox>
                                           <br />
                                       </td>
                                       <td style="margin-left: 40px" class="style26">
                                           <asp:RequiredFieldValidator ID="vldBusPrefix" runat="server" 
                                               ControlToValidate="txtBusPrefix" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Business phone prefix required" Font-Size="Medium">*</asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator ID="vld3BusPrefix" runat="server" 
                                               ControlToValidate="txtBusPrefix" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="3 digits required for business phone prefix" Font-Size="Medium" 
                                               ValidationExpression="^\d{3}$">*</asp:RegularExpressionValidator>
                                       </td>
                                       <td style="margin-left: 40px">
                                           <asp:TextBox ID="txtBusSuffix" runat="server" Height="16px" MaxLength="4" 
                                               TabIndex="13" Width="38px"></asp:TextBox>
                                           <br />
                                       </td>
                                       <td class="style17" style="margin-left: 40px; ">
                                           <asp:RequiredFieldValidator ID="vldBusSuffix" runat="server" 
                                               ControlToValidate="txtBusSuffix" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Business phone suffix required" Font-Size="Medium">*</asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator ID="vld3BusSuffix" runat="server" 
                                               ControlToValidate="txtBusSuffix" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="4 digits required for business phone suffix" Font-Size="Medium" 
                                               ValidationExpression="^\d{4}$">*</asp:RegularExpressionValidator>
                                           <br />
                                       </td>
                                       <td class="style41">
                                           Ext<asp:TextBox ID="txtBusExt" runat="server" Height="16px" MaxLength="10" 
                                               TabIndex="14" Width="30px"></asp:TextBox>
                                       </td>
                                   </tr>
                                   <tr>
                                       <td class="style37">
                                           Mobile Telephone: *&nbsp;&nbsp;&nbsp;
                                       </td>
                                       <td class="style29">
                                           <asp:CheckBox ID="ckPrimCell" runat="server" />
                                           <asp:CustomValidator ID="vldPrimaryTypeNoneSelected" runat="server" 
                                               CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Select one phone number as your primary number." 
                                               Font-Size="Large">*</asp:CustomValidator>
                                       </td>
                                       <td class="style30">
                                           <asp:TextBox ID="txtMobileArea" runat="server" Height="16px" MaxLength="3" 
                                               TabIndex="15" Width="30px"></asp:TextBox>
                                           <br />
                                       </td>
                                       <td class="style31">
                                           <asp:RequiredFieldValidator ID="vldMobileArea" runat="server" 
                                               ControlToValidate="txtMobileArea" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="Mobile phone area code required" Font-Size="Medium">*</asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator ID="vld3MobileArea" runat="server" 
                                               ControlToValidate="txtMobileArea" CssClass="ValidationError" Display="Dynamic" 
                                               ErrorMessage="3 digits required for mobile area code" Font-Size="Medium" 
                                               ValidationExpression="^\d{3}$">*</asp:RegularExpressionValidator>
                                       </td>
                                       <td class="style32">
                                           <asp:TextBox ID="txtMobilePrefix" runat="server" Height="16px" MaxLength="3" 
                                               TabIndex="16" Width="30px"></asp:TextBox>
                                           <br />
                                       </td>
                                       <td class="style33">
                                           <asp:RegularExpressionValidator ID="vld3MobilePrefix" runat="server" 
                                               ControlToValidate="txtMobilePrefix" CssClass="ValidationError" 
                                               Display="Dynamic" ErrorMessage="3 digits required for mobile phone prefix" 
                                               Font-Size="Medium" ValidationExpression="^\d{3}$">*</asp:RegularExpressionValidator>
                                           <asp:RequiredFieldValidator ID="vldMobilePrefix" runat="server" 
                                               ControlToValidate="txtMobilePrefix" CssClass="ValidationError" 
                                               Display="Dynamic" ErrorMessage="Mobile phone prefix required" 
                                               Font-Size="Medium">*</asp:RequiredFieldValidator>
                                       </td>
                                       <td class="style32">
                                           <asp:TextBox ID="txtMobileSuffix" runat="server" Height="16px" MaxLength="4" 
                                               TabIndex="17" Width="38px"></asp:TextBox>
                                           <br />
                                       </td>
                                       <td class="style34">
                                           <asp:RequiredFieldValidator ID="vldMobileSuffix" runat="server" 
                                               ControlToValidate="txtMobileSuffix" CssClass="ValidationError" 
                                               Display="Dynamic" ErrorMessage="Mobile phone suffix required" 
                                               Font-Size="Medium">*</asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator ID="vld3MobileSuffix" runat="server" 
                                               ControlToValidate="txtMobileSuffix" CssClass="ValidationError" 
                                               Display="Dynamic" ErrorMessage="4 digits required for mobile phone suffix" 
                                               Font-Size="Medium" ValidationExpression="^\d{4}$">*</asp:RegularExpressionValidator>
                                       </td>
                                   </tr>
                                   </table>
                                   
                                   
                                           <asp:Button ID="btnMailingAddrView" runat="server" CausesValidation="False" 
                                               Height="25px" TabIndex="18" Text="Mailing Address Different" Width="223px" />
                                           <asp:Button ID="btnMailingAddrSame" runat="server" CausesValidation="False" 
                                               Height="25px" Text="Mailing Address Same" Width="223px" />
                                      
                                       <table>
                                   <tr>
                                       <td class="style15">
                                           <asp:Panel ID="pnlMailingAddress" runat="server" Height="168px" Width="493px">
                                               <table class="center">
                                                   <tr>
                                                       <th colspan="3" style="text-align: center; font-weight: bold;">
                                                           Mailing Address</th>
                                                   </tr>
                                                   <tr>
                                                       <td class="style38">
                                                           Mailing Address:</td>
                                                       <td>
                                                           <asp:TextBox ID="txtMailingAddress" runat="server" MaxLength="50" TabIndex="13"></asp:TextBox>
                                                       </td>
                                                       <td class="style39">
                                                           <asp:RequiredFieldValidator ID="rfvMailingAddr0" runat="server" 
                                                               ControlToValidate="txtMailingCity" CssClass="ValidationError" Display="Dynamic" 
                                                               ErrorMessage="Mailing city required" Font-Size="Large">*</asp:RequiredFieldValidator>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td class="style38">
                                                           Mailing Address 2:</td>
                                                       <td class="style20">
                                                           <asp:TextBox ID="txtMailingAddress2" runat="server" MaxLength="50" 
                                                               TabIndex="14"></asp:TextBox>
                                                       </td>
                                                       <td class="style39">
                                                           <asp:RequiredFieldValidator ID="rfvMailingAddr2" runat="server" 
                                                               ControlToValidate="txtMailingZip" CssClass="ValidationError" Display="Dynamic" 
                                                               ErrorMessage="Mailing zip required" Font-Size="Large">*</asp:RequiredFieldValidator>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td class="style38">
                                                           Mailing City:</td>
                                                       <td class="style44">
                                                           <asp:TextBox ID="txtMailingCity" runat="server" MaxLength="25" TabIndex="15"></asp:TextBox>
                                                       </td>
                                                       <td class="style39">
                                                           <asp:RequiredFieldValidator ID="rfvMailingAddr3" runat="server" 
                                                               ControlToValidate="txtMailingAddress" CssClass="ValidationError" 
                                                               Display="Dynamic" ErrorMessage="Mailing address required" Font-Size="Large">*</asp:RequiredFieldValidator>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td class="style38">
                                                           Mailing State:</td>
                                                       <td class="style44">
                                                           <asp:DropDownList ID="ddMailingState" runat="server" 
                                                               AppendDataBoundItems="True" CssClass="dropdown" DataSourceID="MailingStateList" 
                                                               DataTextField="StateAbbr" DataValueField="StateKey" TabIndex="16">
                                                               <asp:ListItem Value="0"> (Select a State)</asp:ListItem>
                                                           </asp:DropDownList>
                                                       </td>
                                                       <td class="style39">
                                                           <asp:CompareValidator ID="CompareValidator5" runat="server" 
                                                               ControlToValidate="ddMailingState" CssClass="ValidationError" Display="Dynamic" 
                                                               ErrorMessage="Mailing State is required" Font-Size="Large" Operator="NotEqual" 
                                                               Type="Integer" ValueToCompare="0">*</asp:CompareValidator>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td class="style38">
                                                           Mailing Zip:</td>
                                                       <td>
                                                           <asp:TextBox ID="txtMailingZip" runat="server" MaxLength="25" TabIndex="17"></asp:TextBox>
                                                       </td>
                                                       <td class="style39">
                                                           <asp:RegularExpressionValidator ID="RegularExpressionValidator10" 
                                                               runat="server" ControlToValidate="zip" CssClass="ValidationError" 
                                                               Display="Dynamic" ErrorMessage="5 digits required" Font-Size="Large" 
                                                               ValidationExpression="^\d{5}$">*</asp:RegularExpressionValidator>
                                                           <asp:RequiredFieldValidator ID="vldMailZip" runat="server" 
                                                               ControlToValidate="txtMailingZip" CssClass="ValidationError" Display="Dynamic" 
                                                               ErrorMessage="Mailing zip code required" Font-Size="Large">*</asp:RequiredFieldValidator>
                                                       </td>
                                                   </tr>
                                               </table>
                                           </asp:Panel>
                                       </td>
                                   </tr>
                                    </table>

		  
           </asp:WizardStep>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
This was what worked

'delivery_line_1': $('#<%=VendorInformation.FindControl("street").ClientID %>').val(),

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial