First let’s setup an ASP.NET application for our tutorial; we’ll call this project MyNav. Begin by adding a new virtual directory in IIS admin called MyNav. Next create a new Visual Basic ASP.NET Web Application in VS.NET with the correct virtual path. Ex: http://localhost/MyNav
Next we need to add a couple of pages for our website which will contain our navigation menu. Right click the project and select Add->Add Web Form… and create 2 new web forms named Home.aspx, and Contact.aspx. On each page add some simple text to identify the page, such as “This is the Home.aspx page” and “This is the Contact.aspx page”.
Before we add our Web User Control we need to customize some stylesheet properties so our navigation menu has some style and color. By default your new MyNav ASP.NET project has a file called Styles.css. Double click this file to open it and replace its contents with the code below:
border-right: lightskyblue solid;
border-top: lightskyblue solid;
border-left: lightskyblue solid;
border-bottom: lightskyblue solid;