0% found this document useful (0 votes)
2 views2 pages

Asp 5a

The document outlines a practical assignment for a web development course, where the student is tasked with creating a web form that demonstrates website navigation controls using ASP.NET. It includes code for a default page with a menu containing links to 'Home', 'ABOUT US', and 'HELP' pages. The student is also instructed to replicate the menu structure for additional pages and modify properties accordingly.

Uploaded by

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

Asp 5a

The document outlines a practical assignment for a web development course, where the student is tasked with creating a web form that demonstrates website navigation controls using ASP.NET. It includes code for a default page with a menu containing links to 'Home', 'ABOUT US', and 'HELP' pages. The student is also instructed to replicate the menu structure for additional pages and modify properties accordingly.

Uploaded by

rowdysuraj1234
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Name – s u r a j v i s h w a k a r m a Roll no – 22096

Class – Tybsc-IT subject – Advance Web development


Practical- 5(A) Date:- / /24

Practical 5A) : Write the following program.

Aim: Create a web form to Demonstrate use of website navigation controls.

Code: Default.aspx
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="Navigation._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to ASP.NET!
</h2>
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#990000" StaticSubMenuIndent="10px">
<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<Items>
<asp:MenuItem NavigateUrl="~/page1.aspx" Target="new" Text="Home" Value="Home">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/page2.aspx" Target="new" Text="ABOUT US"
Value="ABOUT US">
<asp:MenuItem NavigateUrl="~/page3.aspx" Target="new" Text="HELP" Value="HELP">
</asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticSelectedStyle BackColor="#FFCC66" />
</asp:Menu>
<br /></asp:Content>

Page1.aspx:

Make changes for same page2.aspx and page3.aspx in div tag.


In Edit menu item option add root node HOME and change properties:
Name – s u r a j v i s h w a k a r m a Roll no – 22096
Class – Tybsc-IT subject – Advance Web development
Practical- 5(A) Date:- / /24

Add second root node ABOUT US and change properties:

Add third child node HELP and change properties:

OUTPUT:

You might also like