Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ASP.NET site navigation

Featured Replies

Hi Folks,

 

I'm quite new to .net, and in the past I've created my sites by using includes determined by what parameter was passed in the url. This way I am able to avoid reusing code and I can create submenus easily this way.

 

I also set up my site structure so each area has its own folder, with an index page that holds the submenu for each area, and includes each area page beneath it. This way I only need to update the index page when the sub menu changes.

 

Could anyone tell me how I can go about this in .net?

 

I've read about master pages, could I use these somehow? Most of the examples I've seen have been quite basic for my needs, I take it I'd need to use nested templates?

 

Can anyone help with this?

 

I have attached a graphic if that helps.

 

Thankyou in advance

 

post-4123-1234449564_thumb.gif

  • 2 months later...

Are you using Visual Studio to build your site. As you can create a new master page, then once you have that you can then create a new web page and it will give you the option to select a master page, make sure this is checked. You then place your page specific code in the content control.

 

You can also nest master pages within another master page, athough I thinkg Visual Studio gets confused and doesn't allow you to edit in designer mode.

  • Author
Are you using Visual Studio to build your site. As you can create a new master page, then once you have that you can then create a new web page and it will give you the option to select a master page, make sure this is checked. You then place your page specific code in the content control.

 

You can also nest master pages within another master page, athough I thinkg Visual Studio gets confused and doesn't allow you to edit in designer mode.

 

Thanks very much for your reply.

 

I have this working now using nested master pages.

  • 2 months later...

I have found the best approach to nav is to use a sitemap file. You can use either a simple XML file (which can also be used to submit to google) or an ASP SITEMAP.

 

The ASP sitemap is heirarchal with the benefit of also being intergated with your profile and role managemnet system (so that only users authorised to site pages in the site map will do so) and as a basis to name your pages individually dynamically.

 

You can use the SITEMAP to handle navigation too when bound to a ASP menu or Treeview control.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.