views:

603

answers:

3

The problem I'm having with writing a web application architecture is that I want separate components that work together. By this I simply mean, for example, a navigation bar and the actual page content (as well as a header, which is static) in ASP.NET.

Now, here's where it gets interesting:

  • There are no two pages the same
  • The navigation pages on every page have security on them on a user-by-user basis
  • The navigation has links to other locations

The problem I'm mainly having is that you've usually got to have a full web page in Visual Studio, and if you have portions i.e. excluding your <html> tags then Visual Studio will end up underlining everything as incorrect.

The way is this application is currently being dealt with is using frames (yes, frames) to keep everything separate, but working together. I want to move away from this, although the web system is very large, and very important in that it must be available 24/7.

Any ideas?

A: 

Hi there,

Is it not possible to implement UserControls for this? for example a navigation user control that can handle the security for itself etc etc.

Hope this helps a little.

A

Blounty
+3  A: 

Have you looked at Master Pages in ASP.NET 2.0? These can be used in conjunction with User Controls, and the Site Map Navigation.

Mitch Wheat
They're essentially templates to work by, are they not?
Kezzer
They're a bit more than a simple template.
Mitch Wheat
You're exactly right. Thanks very much!
Kezzer
A: 

There's a really good book you should check out that might shed some light on your problem. It's "ASP.NET 2.0 Website Programming: Problem - Design - Solution", part of the Wrox series.

Nick Gerakines