本文介绍了如何访问wirzardstep旁边验证下拉列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何评估wizardstep下一个按钮(或其他方式)以要求使用select作为第一个选项验证下拉列表。



我尝试过:



< asp:WizardStep runat =serverTitle =个人信息ID =step2> 

< asp:TextBox ID =txtsqlEmailrunat =serverVisible =False>< / asp:TextBox>
< table border =1width =100%>
< colgroup>
< col style =width:60%>
< col style =width:40%>
< thead>
< tr>
< td style =text-align:right>
员工ID:
< td>
< asp:TextBox ID =txtEmpIdrunat =serverWidth =200pxAutoPostBack =TrueBackColor =#3366FFEnabled =FalseForeColor =White>< / ASP:文本框>
< / td>
< / tr>
< tr>
< td style =text-align:right>标题:< / td>
< td>
< - !想要使用下一步按钮验证磁贴 - >
< asp:DropDownList ID =DDTitlerunat =serverDataTextField =TitleDataSourceID =SqlTitleAppendDataBoundItems =true>< / asp:DropDownList>
< asp:RequiredFieldValidator ID =RequiredFieldValidator4runat =serverControlToValidate =DDTitleErrorMessage =请选择标题字体大小=小ForeColor =#FF3300>< / asp :使用RequiredFieldValidator>
< / td>
< / tr>
< tr>
< td style =text-align:right>名字:< / td>
< td>
< asp:TextBox ID =txtFNrunat =serverWidth =200px>< / asp:TextBox>< / td>
< tr>
< td style =text-align:right>姓氏:< / td>
< td>
< asp:TextBox ID =txtLNrunat =serverWidth =200px>< / asp:TextBox>< / td>
< / tr>
< tr>
< td style =text-align:right>电子邮件:< / td>
< td>
< asp:TextBox ID =txtemailrunat =serverWidth =200pxEnabled =FalseBackColor =#3366FFForeColor =White>< / asp:TextBox>< ; / TD>
< / tr>
< / thead>
< / table>
< / asp:WizardStep>
解决方案

I am trying to find out how to assess a wizardstep next button (or another way) to require validate a dropdownlist with "select" as the first option.

What I have tried:

<asp:WizardStep runat="server" Title="Personal Information" ID="step2">
                
                <asp:TextBox ID="txtsqlEmail" runat="server" Visible="False"></asp:TextBox>
                <table border="1" width="100%">
                    <colgroup>
                        <col style="width: 60%">
                        <col style="width: 40%">
                    <thead>
                        <tr>
                            <td style="text-align: right">
                            Employee ID:
                        <td>
                            <asp:TextBox ID="txtEmpId" runat="server" Width="200px" AutoPostBack="True" BackColor="#3366FF" Enabled="False" ForeColor="White"></asp:TextBox>
                        </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">Title:</td>
                            <td>
                                    <--!Want to require validate the tile using the next step button-->
                                <asp:DropDownList ID="DDTitle" runat="server" DataTextField="Title" DataSourceID="SqlTitle" AppendDataBoundItems="true"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="DDTitle" ErrorMessage="Please select Title" Font-Size="Small"                                ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">First Name:</td>
                            <td>
                                <asp:TextBox ID="txtFN" runat="server" Width="200px"></asp:TextBox></td>
                            <tr>
                                <td style="text-align: right">Last name:</td>
                                <td>
                                    <asp:TextBox ID="txtLN" runat="server" Width="200px"></asp:TextBox></td>
                            </tr>
                        <tr>
                            <td style="text-align: right">Email:</td>
                            <td>
                                <asp:TextBox ID="txtemail" runat="server" Width="200px" Enabled="False" BackColor="#3366FF" ForeColor="White"></asp:TextBox></td>
                        </tr>
                    </thead>
                </table>
            </asp:WizardStep>
解决方案


这篇关于如何访问wirzardstep旁边验证下拉列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 18:43