Default.aspx code
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_Default"
%>
<!DOCTYPE html
PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
</div>
<asp:FormView ID="EmployeeFormView"
DataKeyNames="EmployeeID"
Gridlines="Both"
AllowPaging="true"
RunAt="server" onitemdeleting="EmployeeFormView_ItemDeleting"
onpageindexchanging="EmployeeFormView_PageIndexChanging"
onitemupdating="EmployeeFormView_ItemUpdating"
oniteminserted="EmployeeFormView_ItemInserted"
oniteminserting="EmployeeFormView_ItemInserting"
onitemupdated="EmployeeFormView_ItemUpdated"
onmodechanging="EmployeeFormView_ModeChanging" BackColor="#FFFF66"
BorderColor="#FF8080">
<HeaderStyle backcolor="Navy"
forecolor="#999966"/>
<RowStyle backcolor="White"
ForeColor="#CC3300"/>
<EditRowStyle backcolor="#66FF99" ForeColor="#FF9966"/>
<ItemTemplate>
<table>
<tr><td align="right"><b>Employee ID:</b></td><td><%# Eval("EmployeeID")
%></td></tr>
<tr><td align="right"><b>First Name:</b></td> <td><%# Eval("FirstName") %></td></tr>
<tr><td align="right"><b>Last Name:</b></td> <td><%# Eval("LastName")
%></td></tr>
<tr><td align="right"><b>Address:</b></td> <td><%# Eval("Address")%></td></tr>
<tr><td align="right"><b>Designation:</b></td> <td><%# Eval("Designation")%></td></tr>
<tr>
<td colspan="2">
<asp:LinkButton ID="EditButton"
Text="Edit"
CommandName="Edit"
RunAt="server"/>
<asp:LinkButton ID="NewButton"
Text="New"
CommandName="New"
RunAt="server"/>
<asp:LinkButton ID="DeleteButton"
Text="Delete"
CommandName="Delete"
RunAt="server"/>
</td>
</tr>
</table>
</ItemTemplate>
<EditItemTemplate>
<table>
<tr><td align="right"><b>Employee ID:</b></td>
<td><asp:TextBox ID="txtEmployeeID2"
Text='<%#
Bind("EmployeeID") %>'
RunAt="Server" /></td></tr>
<tr><td align="right"><b>First Name:</b></td>
<td><asp:TextBox ID="txtFirstName2"
Text='<%#
Bind("FirstName") %>'
RunAt="Server" /></td></tr>
<tr><td align="right"><b>Last Name:</b></td>
<td><asp:TextBox ID="txtLastName2"
Text='<%#
Bind("LastName") %>'
RunAt="Server" /></td></tr>
<tr><td align="right"><b>Address:</b></td>
<td><asp:TextBox ID="txtAddress2"
Text='<%#
Bind("Address") %>'
RunAt="Server" /></td></tr>
<tr><td align="right"><b>Designation:</b></td>
<td><asp:TextBox ID="txtDesignation2"
Text='<%#
Bind("Designation") %>'
RunAt="Server" /></td></tr>
<tr>
<td colspan="2">

Join the conversation! Your thoughts help the community grow.