Ex 4
Ex 4
Ex 4
Aim:
Alogorithm:
Webpage Design:
Program:
Default.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.style1
{
font-size: xx-large;
text-align: center;
color: #3333FF;
}
.style2
{
width: 600px;
font-size: x-large;
}
.style4
{
text-align: center;
}
.style5
{
width: 136px;
text-align: center;
}
.style6
{
width: 240px;
text-align: center;
}
.style7
{
width: 100%;
font-size: x-large;
}
.style8
{
height: 24px;
text-align: left;
}
.style9
{
height: 24px;
text-align: center;
width: 405px;
}
.style10
{
width: 100%;
font-size: x-large;
}
.style11
{
width: 428px;
}
.style13
{
background-color: #FFFF66;
}
#form1
{
background-color: #CCFFFF;
}
.style14
{
color: #000000;
background-color: #66FFFF;
}
.style15
{
text-align: center;
font-size: x-large;
font-weight: bold;
}
.style16
{
background-color: #00FFFF;
}
</style>
</head>
<body>
<p class="style1">
Web Application for Database Manipulation</p>
<form id="form1" runat="server">
<table class="style2" align="center">
<tr>
<td class="style15" colspan="4">
<span class="style14">Employee Information</span></td>
</tr>
<tr>
<td class="style4">
<asp:Label ID="Label1" runat="server" Text="Deptartment ID"></asp:Label>
</td>
<td class="style5">
<asp:Label ID="Label2" runat="server" Text="Deptartment
Name"></asp:Label>
</td>
<td class="style6">
Employee Name</td>
<td style="text-align: center">
Salary</td>
</tr>
<tr>
<td class="style4">
<asp:TextBox ID="txtDeptID1" runat="server"></asp:TextBox>
</td>
<td class="style5">
<asp:TextBox ID="txtDeptName1" runat="server"></asp:TextBox>
</td>
<td class="style6">
<asp:TextBox ID="txtEmpName1" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="txtSalary1" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style4">
<asp:TextBox ID="txtDeptID2" runat="server"></asp:TextBox>
</td>
<td class="style5">
<asp:TextBox ID="txtDeptName2" runat="server"></asp:TextBox>
</td>
<td class="style6">
<asp:TextBox ID="txtEmpName2" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="txtSalary2" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style4">
<asp:TextBox ID="txtDeptID3" runat="server"></asp:TextBox>
</td>
<td class="style5">
<asp:TextBox ID="txtDeptName3" runat="server"></asp:TextBox>
</td>
<td class="style6">
<asp:TextBox ID="txtEmpName3" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="txtSalary3" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style4" colspan="4">
<asp:Button ID="btnInsert" runat="server"
style="text-align: center; font-size: x-large" Text="Insert Employee Data"
onclick="BtnInsert_Click" />
</td>
</tr>
</table>
<br />
<table class="style7" align="center">
<tr>
<td colspan="2">
<table class="style2" align="center">
<tr>
<td class="style15" >
<span class="style16">Increment Salary for Empoyee</span></td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td class="style9" style="text-align:right">
<asp:Label ID="Label3" runat="server" Text="Enter Employee
Name"></asp:Label>
</td>
<td class="style8">
<asp:TextBox ID="txtEmpName4" runat="server" style="text-align: left"
Width="214px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<asp:Button ID="btnUpdate" runat="server"
style="text-align: center; font-size: x-large" Text="Do Increment"
onclick="btnUpdate_Click" />
</td>
</tr>
</table>
<span class="style13">
<br />
</span>
<table class="style10" align="center">
<tr>
<td class="style15" colspan="2">
<span class="style16">Delete Empoyee details</span></td>
</tr>
<tr>
<td class="style11" style="text-align: right">
<asp:Label ID="Label4" runat="server" Text="Enter Employee
Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtEmpName5" runat="server" style="margin-left:
0px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<asp:Button ID="btnDelete" runat="server" style="font-size: x-large"
Text="Do Delete" onclick="btnDelete_Click" />
</td>
</tr>
</table>
</form>
</body>
</html>
Output: Record Insersion