<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="ManageEmployees.aspx.cs" Inherits="ManageEmployees" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="box round first fullpage">
<h2>
<asp:Label ID="lblTitle" Text="Search Employee" runat="server"></asp:Label>
</h2>
<div class="block ">
<table class="form">
<tr>
<td class="col1">
</td>
<td class="col2">
</td>
</tr>
<tr>
<td class="col1">
<label>
Name</label>
</td>
<td class="col2">
<asp:TextBox ID="txtEmpName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnAddEmployee" runat="server" Text="Add New Employee" onclick="btnAddEmployee_Click"
/>
<asp:Button ID="btnSeach" runat="server" Text="Search Employee" onclick="btnSeach_Click"
/>
</td>
</tr>
</table>
<h2>
Manage Employees</h2>
<div class="block ">
<asp:GridView ID="dgvEmployees" runat="server" AutoGenerateColumns="False"
CssClass="data display datatable"
onpageindexchanging="dgvEmployees_PageIndexChanging" Width="822px"
onrowcommand="dgvEmployees_RowCommand">
<EmptyDataTemplate>
<div class='n_warning'>
<p>
Record not found!</p>
</div>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField Visible="true" HeaderText="Employee ID">
<ItemTemplate>
<asp:Label ID="lblEmpID" runat="server" Text='<%# Eval("EmpID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Address">
<ItemTemplate>
<asp:Label ID="lblAdrs" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Email">
<ItemTemplate>
<asp:Label ID="lblEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Department">
<ItemTemplate>
<asp:Label ID="lblDpt" runat="server" Text='<%# Eval("Departments") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Designation">
<ItemTemplate>
<asp:Label ID="lblDsg" runat="server" Text='<%# Eval("Designation") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Action">
<HeaderStyle Width="150px" />
<ItemTemplate>
<asp:LinkButton ID="lnkEditUser" CssClass="table-icon edit" runat="server" CommandName="edituser"
ToolTip="Edit" Text="Edit" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
<asp:LinkButton ID="lnkViewUser" CssClass="table-icon archive" runat="server" CommandName="viewuser"
ToolTip="View" Text="View" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
<asp:LinkButton ID="LinkButton1" CssClass="table-icon archive" runat="server" CommandName="deletuser"
ToolTip="delete" OnClientClick="return confirm('Do You Want to Delete Data')" Text="Delete" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings FirstPageText="<<First" LastPageText="Last>>" PageButtonCount="10" position="Bottom" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="black" />
<PagerStyle ForeColor="black" HorizontalAlign="Left" CssClass="pagination" />
</asp:GridView>
</div>
</div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="box round first fullpage">
<h2>
<asp:Label ID="lblTitle" Text="Search Employee" runat="server"></asp:Label>
</h2>
<div class="block ">
<table class="form">
<tr>
<td class="col1">
</td>
<td class="col2">
</td>
</tr>
<tr>
<td class="col1">
<label>
Name</label>
</td>
<td class="col2">
<asp:TextBox ID="txtEmpName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnAddEmployee" runat="server" Text="Add New Employee" onclick="btnAddEmployee_Click"
/>
<asp:Button ID="btnSeach" runat="server" Text="Search Employee" onclick="btnSeach_Click"
/>
</td>
</tr>
</table>
<h2>
Manage Employees</h2>
<div class="block ">
<asp:GridView ID="dgvEmployees" runat="server" AutoGenerateColumns="False"
CssClass="data display datatable"
onpageindexchanging="dgvEmployees_PageIndexChanging" Width="822px"
onrowcommand="dgvEmployees_RowCommand">
<EmptyDataTemplate>
<div class='n_warning'>
<p>
Record not found!</p>
</div>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField Visible="true" HeaderText="Employee ID">
<ItemTemplate>
<asp:Label ID="lblEmpID" runat="server" Text='<%# Eval("EmpID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Name">
<ItemTemplate>
<asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Address">
<ItemTemplate>
<asp:Label ID="lblAdrs" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Email">
<ItemTemplate>
<asp:Label ID="lblEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Department">
<ItemTemplate>
<asp:Label ID="lblDpt" runat="server" Text='<%# Eval("Departments") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Visible="true" HeaderText="Designation">
<ItemTemplate>
<asp:Label ID="lblDsg" runat="server" Text='<%# Eval("Designation") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Action">
<HeaderStyle Width="150px" />
<ItemTemplate>
<asp:LinkButton ID="lnkEditUser" CssClass="table-icon edit" runat="server" CommandName="edituser"
ToolTip="Edit" Text="Edit" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
<asp:LinkButton ID="lnkViewUser" CssClass="table-icon archive" runat="server" CommandName="viewuser"
ToolTip="View" Text="View" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
<asp:LinkButton ID="LinkButton1" CssClass="table-icon archive" runat="server" CommandName="deletuser"
ToolTip="delete" OnClientClick="return confirm('Do You Want to Delete Data')" Text="Delete" CommandArgument='<%# Eval("EmpID") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings FirstPageText="<<First" LastPageText="Last>>" PageButtonCount="10" position="Bottom" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="black" />
<PagerStyle ForeColor="black" HorizontalAlign="Left" CssClass="pagination" />
</asp:GridView>
</div>
</div>
</asp:Content>
0 comments:
Post a Comment