Doctype HTML Head Title Title Style #Image1
Doctype HTML Head Title Title Style #Image1
aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
#Image1 {
height: 572px;
width: 429px;
text-align: center;
}
</style>
</head>
<body>
<form id="form1" runat="server">
</asp:TableCell>
</asp:TableRow>
<%-- --%>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Label ID="Label2" runat="server" Text="User Name"></asp:Label>
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center">
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Label ID="Label1" runat="server" Text="Password" ></asp:Label>
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center">
<asp:TextBox ID="TextBox1" runat="server" type="password"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Button ID="Button2" runat="server" Text="New User Registration" />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center">
<asp:Button ID="Button1" runat="server" Text="Enter" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
Default.aspx.vb
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If TextBox2.Text = "Admin" And TextBox1.Text = "Pass" Then
Response.Redirect("Train.aspx")
Else
Response.Redirect("Registration.aspx")
End If
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Response.Redirect("Search.aspx")
End Sub
End Class
Registration.aspx
<p></p>
<asp:Table id="Table2" runat="server"
CellPadding="10"
GridLines="Both"
HorizontalAlign="Center">
<asp:TableRow >
<asp:TableCell ColumnSpan="2" Font-Bold ="true" HorizontalAlign="Center"> User
Registration Form
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
<asp:Image id="Image1" runat="server"
AlternateText="Image text"
width="400"
height="200"
ImageUrl="Trains.jpg"/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label10" runat="server" Text="Name"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Gender"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label5" runat="server" Text="Date of
Birth"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label6" runat="server" Text="Address"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label1" runat="server" Text="Contact
No"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label2" runat="server" Text="Email ID"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Button ID="Button1"
runat="server" Text="Submit" />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center"> <input id="Reset1" type="reset"
value="reset" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
Registration.aspx.vb
Partial Class Registration
Inherits System.Web.UI.Page
End Class
Route.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Route.aspx.vb" Inherits="Route"
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form3" runat="server">
<p></p>
<asp:Table id="Table2" runat="server"
CellPadding="10"
GridLines="Both"
HorizontalAlign="Center">
<asp:TableRow >
<asp:TableCell ColumnSpan="2" Font-Bold ="true" HorizontalAlign="Center"> Train Route
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
<asp:Image id="Image1" runat="server"
AlternateText="Image text"
width="200"
height="200"
ImageUrl="Routes1.jpg"/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label10" runat="server" Text="Starting
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Reaching
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label5" runat="server" Text="Time Taken
Ordinary"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label6" runat="server" Text="Time Taken
Mail/Express"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label1" runat="server" Text="Time Taken SuperFast
"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Button ID="Button1"
runat="server" Text="Save" />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center"> <input id="Reset1" type="reset"
value="reset" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
Route.aspx.vb
Partial Class Route
Inherits System.Web.UI.Page
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Response.Redirect("Route.aspx")
End Sub
End Class
Search.aspx.vb
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Search.aspx.vb"
Inherits="Search" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form3" runat="server">
<asp:Table id="Table2" runat="server"
CellPadding="10"
GridLines="Both"
HorizontalAlign="Center">
<asp:TableRow >
<asp:TableCell ColumnSpan="2" Font-Bold ="true" HorizontalAlign="Center"> Search Train
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
<asp:Image id="Image1" runat="server"
AlternateText="Image text"
width="400"
height="200"
ImageUrl="Trainsn.jpg"/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label10" runat="server" Text="Starting
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Reaching
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label5" runat="server" Text="Date of
Journey"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label6" runat="server" Text="Train
Type"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
Train.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Train.aspx.vb" Inherits="Train"
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body >
<p></p>
<asp:Table id="Table2" runat="server"
CellPadding="10"
GridLines="Both"
HorizontalAlign="Center">
<asp:TableRow >
<asp:TableCell ColumnSpan="2" HorizontalAlign="Center"> Train Name
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="2" HorizontalAlign="Center">
<asp:Image id="Image1" runat="server"
AlternateText="Image text"
width="200"
height="200"
ImageUrl="NewTrain.jpg"/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell > <asp:Label ID="Label3" runat="server" Text="Train No/Train
Name"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label10" runat="server" Text="Starting
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Reaching
Station"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableRow>
<asp:TableCell> <asp:Label ID="Label6" runat="server" Text="Reaching
Time"></asp:Label>
</asp:TableCell>
<asp:TableCell> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
<asp:Button ID="Button1"
runat="server" Text="Save" />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Center"> <input id="Reset1" type="reset"
value="reset" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
Train.aspx.vb
Partial Class Train
Inherits System.Web.UI.Page
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Response.Redirect("Route.aspx")
End Sub
End Class