<%@ Page Title="BlueWhale | Add Employee" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="AddEmployee"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:TextBox ID ="txtState" runat ="server" Visible="false" ViewStateMode="Enabled"></asp:TextBox>
<asp:TextBox ID ="txtEmpId" runat ="server" Visible="false" ViewStateMode="Enabled"></asp:TextBox>
<div class="box round first fullpage">
<h2>
<asp:Label ID="lblTitle" Text="Add New Employee" runat="server"></asp:Label></h2>
<div class="block ">
<table class="form">
<tr>
<td class="col1">
</td>
<td class="col2">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red"
ValidationGroup="EmployeeGroup" />
</td>
</tr>
<tr>
<td class="col1">
<label>
Name</label>
</td>
<td class="col2">
<asp:TextBox ID="txtEmpName" runat="server" required></asp:TextBox>
<%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmpName" ErrorMessage="Name is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td>
</tr>
<tr>
<td>
<label>
Address</label>
</td>
<td>
<asp:TextBox ID="txtAddress" CssClass="medium" runat="server" required></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtAddress" ErrorMessage="Address is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td>
</tr>
<tr>
<td>
<label>
Email</label>
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" required></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Email is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td> </tr>
<tr>
<td>
<asp:Label ID="lblDsg" runat= "server" Text="Designation"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlDesignations" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblDept" runat="server" Text ="Department"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlDepartments" runat="server" AutoPostBack="true" ></asp:DropDownList>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnSubmit" runat="server" Text="Save"
onclick="btnSubmit_Click" ValidationGroup="EmployeeGroup" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel"
onclick="btnCancel_Click"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="lblMsg" runat="server"></asp:Label>
</td>
</tr>
</table>
</div>
</div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:TextBox ID ="txtState" runat ="server" Visible="false" ViewStateMode="Enabled"></asp:TextBox>
<asp:TextBox ID ="txtEmpId" runat ="server" Visible="false" ViewStateMode="Enabled"></asp:TextBox>
<div class="box round first fullpage">
<h2>
<asp:Label ID="lblTitle" Text="Add New Employee" runat="server"></asp:Label></h2>
<div class="block ">
<table class="form">
<tr>
<td class="col1">
</td>
<td class="col2">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red"
ValidationGroup="EmployeeGroup" />
</td>
</tr>
<tr>
<td class="col1">
<label>
Name</label>
</td>
<td class="col2">
<asp:TextBox ID="txtEmpName" runat="server" required></asp:TextBox>
<%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtEmpName" ErrorMessage="Name is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td>
</tr>
<tr>
<td>
<label>
Address</label>
</td>
<td>
<asp:TextBox ID="txtAddress" CssClass="medium" runat="server" required></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtAddress" ErrorMessage="Address is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td>
</tr>
<tr>
<td>
<label>
Email</label>
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" required></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Email is requird" ForeColor="Red"
ValidationGroup="EmployeeGroup">*</asp:RequiredFieldValidator>--%>
</td> </tr>
<tr>
<td>
<asp:Label ID="lblDsg" runat= "server" Text="Designation"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlDesignations" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblDept" runat="server" Text ="Department"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlDepartments" runat="server" AutoPostBack="true" ></asp:DropDownList>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnSubmit" runat="server" Text="Save"
onclick="btnSubmit_Click" ValidationGroup="EmployeeGroup" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel"
onclick="btnCancel_Click"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="lblMsg" runat="server"></asp:Label>
</td>
</tr>
</table>
</div>
</div>
</asp:Content>
0 comments:
Post a Comment