Tourist WEbsite

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Aim 11. Develop an ASP.

NET application for Asp menu control and setting with its
properties for navigation in a site & usage of other important controls like multi-
View etc.
Name : Manish Khalode
Date: 20/03/202
Source Code:
Default.aspx: <Tourist>
<%@ Page Language="C#" <homepage title="Island Destination"
AutoEventWireup="true" url="Default.aspx">
CodeFile="Default.aspx.cs" Inherits="_Default" %> <subpage title="Singapore"
url="singapore.aspx"></subpage>
<!DOCTYPE html PUBLIC "-//W3C//DTD <subpage title="England"
XHTML 1.0 Transitional//EN" url="England.aspx"></subpage>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1- </homepage>
transitional.dtd"> </Tourist>

<html xmlns="http://www.w3.org/1999/xhtml"> Singapore.aspx:


<head runat="server"> <%@ Page Language="C#"
<title>Tour Website</title> AutoEventWireup="true"
</head> CodeFile="singapore.aspx.cs" Inherits="singapore"
<body> %>
<form id="form1" runat="server">
<asp:Label ID="Label1" runat="server" Text="" <!DOCTYPE html PUBLIC "-//W3C//DTD
><h2>Welcome To My Tourist XHTML 1.0 Transitional//EN"
Website</h2></asp:Label> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
<asp:Label ID="Label2" runat="server" transitional.dtd">
Text=""><h4>View The Destination Of Your
Choice</h4></asp:Label> <html xmlns="http://www.w3.org/1999/xhtml">
<br /> <head runat="server">
<asp:TreeView ID="TreeView1" runat="server" <title>Welcome To Singapore</title>
DataSourceID="XmlDataSource1"> </head>
<DataBindings> <body>
<asp:TreeNodeBinding <form id="form1" runat="server">
DataMember="homepage" NavigateUrlField="url" <div>
TextField="title"/> <center><h1> Welcome To Singapore</h1>
<asp:TreeNodeBinding </center>
DataMember="subpage" NavigateUrlField="url" </div>
TextField="title"/> </form>
</DataBindings> </body>
</asp:TreeView> </html>
<asp:XmlDataSource ID="XmlDataSource1"
runat="server" DataFile="~/XMLFile.xml"
></asp:XmlDataSource> England.aspx:
<br /> <%@ Page Language="C#"
</form> AutoEventWireup="true"
</body> CodeFile="England.aspx.cs" Inherits="England" %>
</html> <!DOCTYPE html PUBLIC "-//W3C//DTD
XMLFile.xml XHTML 1.0 Transitional//EN"
<?xml version="1.0" encoding="utf-8" ?>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1- <form id="form1" runat="server">
transitional.dtd"> <div><center><h1> Welcome To England</h1>
<html xmlns="http://www.w3.org/1999/xhtml"> </center>
<head runat="server"> </div>
<title>Welcome To England</title> </form>
</head> </body>
<body> </html>
Output:

You might also like