62,074
社区成员
发帖
与我相关
我的任务
分享
<asp:Button ID="BtnSelect" runat="server" Text="查询" OnClick="BtnSelect_Click" />
<asp:Button ID="BtnShowAdd" runat="server" Text="添加" OnClick="BtnShowAdd_Click" /><br />
<asp:Label id="lbError" runat="server" ForeColor="red"></asp:Label>
<br />
<asp:Panel ID="panelAdd" runat="server" Visible="false">
<form id="form1">
<hr />
<asp:Label id="lblEmployeeSet" runat="server"></asp:Label>
<asp:Label ID="lbl12" runat="server" ForeColor="red">“*”号为必填项</asp:Label>
<table id="TABLE1" runat="server" style="width: 571px; text-align:left">
<tr>
<td colspan="3" style="width: 349px; height: 44px">
<asp:Label ID="Label1" runat="server" Text="* 姓名:" Width="74px" Height="18px" style="TEXT-ALIGN:right"></asp:Label><asp:TextBox ID="EmployeeName" runat="server" Height="18px" Width="200px" ></asp:TextBox></td>
<td style="width: 6px"></td>
<td style="width: 242px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="EmployeeName"
Display="Dynamic" ErrorMessage="用户名必须填写"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="3" style="width: 349px; height: 20px">
<asp:Label ID="Label2" runat="server" Text="* 密码:" Width="74px" Height="18px" style="TEXT-ALIGN:right"></asp:Label><asp:TextBox ID="PassWord" runat="server" Height="18px" Width="200px" MaxLength="12" TextMode="Password"></asp:TextBox></td>
<td style="width: 6px"></td>
<td style="width: 242px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="PassWord"
Display="Dynamic" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator></td>
</tr>
</table>
</form>
</asp:Panel>