0% found this document useful (0 votes)
21 views81 pages

Hotel Booking and User Login Page

This document contains code for an ASP.NET web form application for a hotel booking system. The main form contains fields for user login including username and password fields. It also contains navigation links for customer, booking, feedback, and other hotel management functions. Additional files contain code for registration, room availability checking, and login validation functionality.

Uploaded by

VKM2013
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views81 pages

Hotel Booking and User Login Page

This document contains code for an ASP.NET web form application for a hotel booking system. The main form contains fields for user login including username and password fields. It also contains navigation links for customer, booking, feedback, and other hotel management functions. Additional files contain code for registration, room availability checking, and login validation functionality.

Uploaded by

VKM2013
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Coding

[Link]

<%@ Page Language="VB" AutoEventWireup="false"


CodeFile="[Link]" Inherits="index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head runat="server">
<title></title>
<style type="text/css">
.style2
{
text-align: center;
}
.style3
{
width: 375px;
}
.style4
{
width: 80px;
}
.style5
{
text-align: center;
}
.style6
{
text-align: right;
}
</style>
</head>
<body>
<p>
<br />
</p>
<form id="form1" runat="server">
<p>

<table style="width:100%;">
<tr>
<td class="style5" bgcolor="White" colspan="2">
<asp:Image ID="Image2" runat="server"
Height="88px"
ImageUrl="~/Images/[Link]"
style="margin-left: 0px" Width="381px" />
</td>
</tr>
<tr>
<td class="style6"><div align="right">
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow"
Width="78px">Customer</asp:LinkButton>
</div></td>
<td class="style2" rowspan="10"><div align="Left">
<asp:Image ID="Image1" runat="server"
Height="368px"
ImageUrl="~/Images/[Link]"
Width="670px"
style="text-align: left" />
</div></td>
</tr>
<tr>
<td class="style6"><div align="right">
<asp:LinkButton ID="LinkButton3" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow"
Width="78px">Booking</asp:LinkButton>
</div></td>
</tr>
<tr>
<td class="style6"><div align="right">

<asp:LinkButton ID="LinkButton4" runat="server"


BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow"
Width="78px">Feedback</asp:LinkButton>
</div></td>
</tr>
<tr>
<td class="style6"><div align="right">
<asp:LinkButton ID="LinkButton5" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow"
Width="78px">ContactUs</asp:LinkButton>
</div></td>
</tr>
<tr>
<td class="style6"><div align="right">
<asp:LinkButton ID="LinkButton6" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow"
Width="78px">Cancellation</asp:LinkButton>
</div></td>
</tr>
<tr>
<td class="style6"><div align="right">
<asp:LinkButton ID="LinkButton8" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow" Width="83px">Room
Master</asp:LinkButton>
</div></td>
</tr>
<tr>

<td class="style6">
<asp:LinkButton ID="LinkButton9" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow" Width="82px">Room
Report</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style6">
&nbsp;</td>
</tr>
<tr>
<td class="style6">
<asp:LinkButton ID="LinkButton7" runat="server"
BackColor="#FF9900"
ForeColor="White" BorderStyle="Outset" FontBold="True"
Font-Names="Arial Narrow" Width="74px">Sign
Out</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style6">
&nbsp;</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server" Font-Bold="True"
Font-Names="Courier New"
Font-Size="Small" ForeColor="Red"></asp:Label>
</td>
</tr>
</table>
</p>
<div>
<table style="width:100%;">

<tr>
<td class="style3">
&nbsp;</td>
<td class="style4">
<asp:Label ID="Label2" runat="server" FontBold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="UserID"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td class="style4">
<asp:Label ID="Label3" runat="server" FontBold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Password"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td class="style4">
&nbsp;</td>
<td>
<asp:Label ID="Label4" runat="server" FontBold="True" Font-Names="Courier New"
Font-Size="Small" ForeColor="Red"></asp:Label>
</td>
</tr>

<tr>
<td class="style3">
&nbsp;</td>
<td class="style4">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td class="style4">
&nbsp;</td>
<td>
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="White"
ForeColor="Red" Font-Bold="True" FontNames="Courier New"
Font-Size="X-Large">OK</asp:LinkButton>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class index
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib()
[Link]()

If Not [Link]("select * from Login where


UserId='" & [Link] & "' and Password='" & [Link] &
"'") Then
[Link] = "Wrong Userid or Password..."
[Link] = ""
[Link] = ""
Else
[Link] = "Welcome " & [Link]
[Link]("UserID", [Link])
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton3_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton4_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton5_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton6_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton7_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]

[Link]("UserID")
[Link] = "You have been logged out now..."
End Sub
Protected Sub LinkButton8_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub LinkButton9_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class
[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Registration" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
}
.style2
{
width: 258px;
}
</style>
</head>
<body background="Images/[Link]">

<form id="form1" runat="server">


<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Booking Form"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label15" runat="server"
BorderColor="#FF3300" Font-Bold="True"

Font-Names="Arial Narrow" ForeColor="Maroon"


Text="UserID"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtUserID"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label10" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="First Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label11" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Last Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>

<td class="style2">
<asp:Label ID="Label12" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Height="92px" TextMode="MultiLine"
Width="180px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox>
</td>

</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="City"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox6"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label9" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Choose Room No"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DDLRoomGrade"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
<asp:LinkButton ID="btnAvail" runat="server"
BorderColor="#CCFF99"
ForeColor="#99FF33">Check
Availability</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>

<td>
<asp:Label ID="lblAvailMsg" runat="server"
BorderColor="#CCFFCC"
ForeColor="#FF3300"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label4" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="No. Of Guest"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DDLTotalGuest"
runat="server" Height="16px" Width="50px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label5" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Arrival Date"></asp:Label>
</td>
<td>
<asp:Calendar ID="Calendar1" runat="server"
Height="16px" Width="147px">
</asp:Calendar>

</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label6" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Departure Date"></asp:Label>
</td>
<td>
<asp:Calendar ID="Calendar2" runat="server"
Height="16px" Width="147px">
</asp:Calendar>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label7" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Flight No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox7"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label13" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Flight Time"></asp:Label>

</td>
<td>
<asp:TextBox ID="TextBox8"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label14" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Other Requirement"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox9" runat="server"
Height="92px" TextMode="MultiLine"
Width="180px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">

&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]

Partial Class Registration


Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib()
[Link]()
Dim d1 As String
Dim d2 As String
d1 = [Link]()
d2 = [Link]()
'If Not [Link]("select * from Customer where
UserId='" & [Link] & "'") Then
If CheckAvailability([Link]) Then
[Link]("Insert into registration values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] &
"','" & [Link] & "','" & [Link] & "','" & d1 &
"','" & d2 & "','" & [Link] & "','" & [Link] & "','" &
[Link] & "')")
[Link]("Update Hotel set status='O' where
RoomNo='" & [Link] & "'")
End If
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
'End If
End Sub
Protected Function CheckAvailability(ByVal rno As String) As
String
Dim dlib As New DatabaseLib()
[Link]()

Dim avail As Boolean


avail = False
avail = [Link]("select * from hotel where
RoomNo='" & rno & "' and status='V'")
Return avail
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
Dim i As Integer
For i = 1 To 50
[Link](i & "")
Next
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
Protected Sub btnAvail_Click(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If CheckAvailability([Link]) Then
[Link] = "Selected room is available"
Else
[Link] = "Selected room is not available, select
different room"
End If
End Sub
End Class

[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Customer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0


Transitional//EN" "[Link]
<html xmlns="[Link]
<head runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 252px;
text-align: right;
}
.style2
{
width: 258px;
}
</style>
</head>
<body background="Images/[Link]">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
<asp:Image ID="Image1" runat="server"
Height="158px" BorderStyle="Solid"
ImageUrl="~/Images/[Link]" />
</td>
<td class="style2">

&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Customer Registration Form"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>

&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="UserID"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Password"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>

<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="UserName"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label9" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="DOB"></asp:Label>
</td>
<td>
DD<asp:DropDownList ID="DDLDate" runat="server"
Height="16px" Width="50px">
</asp:DropDownList>
MM<asp:DropDownList ID="DDLMonth"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
YYYY<asp:DropDownList ID="DDLYear"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">

<asp:Label ID="Label4" runat="server"


BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text=" Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label5" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text=" PhoneNo"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label6" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text=" Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox6"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>

<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label7" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text=" City"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox7"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">

&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>

</div>
</form>
</body>
</html>
[Link]
Partial Class Customer
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib
[Link]()
If Not [Link]("select * from Customer where
UserId='" & [Link] & "'") Then
[Link]("Insert into Customer values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] &
"','" & [Link] & "')")
[Link]("Insert into Login values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "/" & [Link] & "/" & [Link] & "','"
& [Link] & "')")
End If
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
Protected Sub LinkButton1_Load(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As


[Link]) Handles [Link]
Dim a As Integer
If Not IsNothing([Link]("UserID")) Then
For a = 1 To 31
[Link](a & "")
Next
For a = 1 To 12
[Link](a & "")
Next
For a = 1980 To 2012
[Link](a & "")
Next
Else
[Link]("[Link]")
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class
[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="CustomerInfo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1

{
width: 252px;
text-align: right;
}
.style2
{
width: 258px;
}
.style3
{
width: 258px;
text-align: center;
}
</style>
</head>
<body background="Images/[Link]">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
<asp:Image ID="Image1" runat="server"
Height="158px" BorderStyle="Solid"
ImageUrl="~/Images/[Link]" />
</td>
<td class="style2">
<asp:Label ID="Label1" runat="server"
BackColor="#FF6666" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"

Text="Customer Information Register"


Width="319px"></asp:Label>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:GridView ID="GridView1" runat="server"
Width="518px">
</asp:GridView></td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>

</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Imports [Link]
Imports [Link]
Partial Class CustomerInfo
Inherits [Link]
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
Else
If [Link]("UserID") <> "admin" Then
[Link]("[Link]")
End If
End If
Dim ada As New OleDbDataAdapter()
Dim ds As New DataSet()
Dim rd As OleDbDataReader
Dim dlib As New DatabaseLib()
Dim query As String
[Link]()
query = "select * from registration"
Dim cmd As New OleDbCommand(query, [Link])
rd = [Link]()
If [Link]() Then
ada = New OleDbDataAdapter(query, [Link])
ds = New DataSet()
[Link](ds, "Hotel")
[Link] = [Link]("Hotel")
[Link]()
End If

End Sub
End Class
[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Feedback" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
}
.style2
{
width: 258px;
}
</style>
</head>
<body bgcolor="#cccc00">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>

<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Your Feedback"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>

<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox>

</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label4" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Feedback"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>

<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>

</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class Feedback
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib
[Link]()
[Link]("Insert into Feedback values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "')")
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class

[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Cancellation" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
}
.style2
{
width: 258px;
}
</style>
</head>
<body bgcolor="#cccc00">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">

&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Cancellation Form"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label15" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="UserID"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtUserID"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label10" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Name"></asp:Label>

</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label11" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label12" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Height="21px"
Width="125px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">

<asp:Label ID="Label2" runat="server"


BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label5" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Booking Date"></asp:Label>
</td>
<td>
<asp:Calendar ID="Calendar1" runat="server"
Height="16px" Width="147px">
</asp:Calendar>
</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label6" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Cancellation Date"></asp:Label>
</td>
<td>
<asp:Calendar ID="Calendar2" runat="server"
Height="16px" Width="147px">
</asp:Calendar>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>

</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class Cancellation
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib()

[Link]()
Dim d1 As String
Dim d2 As String
d1 = [Link]()
d2 = [Link]()
If Not [Link]("select * from Customer where
UserId='" & [Link] & "'") Then
[Link]("Insert into Cancellations values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "','" & [Link] & "','" & [Link] &
"','" & d1 & "','" & d2 & "')")
' for record deletion function insertrecord is calling
[Link]("Delete from Payment where UserID='"
& [Link] & "')")
[Link]("Delete from Registration where
UserID='" & [Link] & "')")
[Link]("Delete from Customer where UserID='"
& [Link] & "')")
[Link]
[Link]
[Link]
[Link]
[Link]
End If
End Sub

=
=
=
=
=

""
""
""
""
""

Protected Sub Page_Load(ByVal sender As Object, ByVal e As


[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class

[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Payment" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
}
.style2
{
width: 258px;
}
</style>
</head>
<body bgcolor="#cccc00">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Payment Details"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">

&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="UserID"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"
Width="169px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="User Name"></asp:Label>
</td>
<td>

<asp:TextBox ID="TextBox2" runat="server"


Height="24px"
Width="169px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Width="166px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label9" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Payment Mode"></asp:Label>
</td>
<td>
<asp:DropDownList ID="DDLPaymentMode"
runat="server" Height="16px" Width="90px">
<asp:ListItem>Cash</asp:ListItem>
<asp:ListItem>DD</asp:ListItem>
<asp:ListItem>Cheque</asp:ListItem>
<asp:ListItem>Pay Pal</asp:ListItem>
<asp:ListItem>Bank Transfer</asp:ListItem>
</asp:DropDownList>
</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label10" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Amount Paid"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"
Height="24px"
Width="169px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>

</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class Payment
Inherits [Link]

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal


e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib()
[Link]()
If Not [Link]("select * from Customer where
UserId='" & [Link] & "'") Then
[Link]("Insert into Payment values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "','" & [Link] & "')")
[Link] = ""
[Link] = ""
[Link] = ""
End If
End Sub
Protected Sub Page_Error(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class
[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="ContactUs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]

<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
text-align: right;
}
.style2
{
width: 258px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Contact Us"></asp:Label>

</td>
</tr>
<tr>
<td class="style1">
<asp:Image ID="Image1" runat="server"
Height="146px"
ImageUrl="images/other_girl.jpg"
Width="170px" />
</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>

<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
TextMode="MultiLine" Height="90px"
Width="164px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>

<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label9" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="DOB"></asp:Label>
</td>
<td>
DD<asp:DropDownList ID="DDLDate" runat="server"
Height="16px" Width="50px">
</asp:DropDownList>
MM<asp:DropDownList ID="DDLMonth"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
YYYY<asp:DropDownList ID="DDLYear"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label4" runat="server"
BorderColor="#FF3300" Font-Bold="True"

Font-Names="Arial Narrow" ForeColor="Maroon"


Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"

Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>

<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class ContactUs
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib
[Link]()
[Link]("Insert into ContactUs values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "/" & [Link] & "/" & [Link] & "','"
& [Link] & "')")

[Link]
[Link]
[Link]
[Link]
End Sub

=
=
=
=

""
""
""
""

Protected Sub Page_Load(ByVal sender As Object, ByVal e As


[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
Dim a As Integer
For a = 1 To 31
[Link](a & "")
Next
For a = 1 To 12
[Link](a & "")
Next
For a = 1980 To 2012
[Link](a & "")
Next
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class
[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="Feedback" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "[Link]
<html xmlns="[Link]

<head id="Head1" runat="server">


<title></title>
<style type="text/css">
.style1
{
width: 152px;
}
.style2
{
width: 258px;
}
</style>
</head>
<body bgcolor="#cccc00">
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
<asp:Label ID="Label1" runat="server"
BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Your Feedback"></asp:Label>
</td>
</tr>

<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>

</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>

<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label4" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Feedback"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>

<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">

&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class Feedback
Inherits [Link]

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal


e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib
[Link]()
[Link]("Insert into Feedback values('" &
[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "')")
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class

[Link]
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="[Link]" Inherits="ContactUs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0


Transitional//EN" "[Link]
<html xmlns="[Link]
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.style1
{
width: 152px;
text-align: right;
}
.style2
{
width: 258px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width:100%;">
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>

<asp:Label ID="Label1" runat="server"


BackColor="#669900" BorderStyle="Solid"
Font-Bold="True" Font-Names="Arial Black"
ForeColor="White"
Text="Contact Us"></asp:Label>
</td>
</tr>
<tr>
<td class="style1">
<asp:Image ID="Image1" runat="server"
Height="146px"
ImageUrl="images/other_girl.jpg"
Width="170px" />
</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">

&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label2" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label8" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Address"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"
TextMode="MultiLine" Height="90px"
Width="164px"></asp:TextBox>

</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label3" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Phone No"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
<asp:Label ID="Label9" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="DOB"></asp:Label>
</td>
<td>
DD<asp:DropDownList ID="DDLDate" runat="server"
Height="16px" Width="50px">
</asp:DropDownList>
MM<asp:DropDownList ID="DDLMonth"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
YYYY<asp:DropDownList ID="DDLYear"
runat="server" Height="16px" Width="50px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style1">

&nbsp;</td>
<td class="style2">
<asp:Label ID="Label4" runat="server"
BorderColor="#FF3300" Font-Bold="True"
Font-Names="Arial Narrow" ForeColor="Maroon"
Text="Email"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>

<td class="style2">
<asp:LinkButton ID="LinkButton1" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Save</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="LinkButton2" runat="server"
BackColor="Yellow"
Font-Bold="True" Font-Names="Arial"
ForeColor="#660033">Back</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">

&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="style1">
&nbsp;</td>
<td class="style2">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</div>
</form>
</body>
</html>
[Link]
Partial Class ContactUs
Inherits [Link]
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
Dim dlib As New DatabaseLib
[Link]()

[Link]("Insert into ContactUs values('" &


[Link] & "','" & [Link] & "','" & [Link] & "','"
& [Link] & "/" & [Link] & "/" & [Link] & "','"
& [Link] & "')")
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
[Link]) Handles [Link]
If IsNothing([Link]("UserID")) Then
[Link]("[Link]")
End If
Dim a As Integer
For a = 1 To 31
[Link](a & "")
Next
For a = 1 To 12
[Link](a & "")
Next
For a = 1980 To 2012
[Link](a & "")
Next
End Sub
Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal
e As [Link]) Handles [Link]
[Link]("[Link]")
End Sub
End Class

Span Shots

You might also like