Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / November 2007

Tip: Looking for answers? Try searching our database.

Navigation Suggestions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan Wood - 04 Nov 2007 18:48 GMT
I'm still pretty new to ASP.NET. I'm developing a site that requires all
users to log on. Once logged on, I can determine which of three types of
users they are (types are implemented using ASP.NET membership roles).

Each type of user will have access to a different set of pages. I can use
roles to specify which pages can be accessed by which type of user.

But I'm trying to determine the best way to display navigation for each type
of user. I'd like to use a common master page. Does anyone have any
suggestions? And would ASP.NET navigation be helpful for providing
role-specific menus?

Also, is there any advantage to placing pages for each type of user in
separate directories?

Thanks for any tips!

Signature

Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Mark Rae [MVP] - 04 Nov 2007 18:57 GMT
> But I'm trying to determine the best way to display navigation for each
> type of user. I'd like to use a common master page. Does anyone have any
> suggestions? And would ASP.NET navigation be helpful for providing
> role-specific menus?

If the three menus are similar enough, I'd just have one which you then
amend as necessary as the MasterPage gets loaded by the content pages...

> Also, is there any advantage to placing pages for each type of user in
> separate directories?

Again, it depends how different the functionality is between the three
types - I guess it would have to be *really* different to justify separate
folders - at that point, you may as well have separate sites, as it's
tantamount to the same thing...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Jonathan Wood - 04 Nov 2007 19:09 GMT
Mark,

>> But I'm trying to determine the best way to display navigation for each
>> type of user. I'd like to use a common master page. Does anyone have any
[quoted text clipped - 3 lines]
> If the three menus are similar enough, I'd just have one which you then
> amend as necessary as the MasterPage gets loaded by the content pages...

Each of the three menus would probably have a completely different set of
links/pages. Is that what you meant by "similar?"

Do you not really see the ASP.NET navigation controls being helpful for
this?

> Again, it depends how different the functionality is between the three
> types - I guess it would have to be *really* different to justify separate
> folders - at that point, you may as well have separate sites, as it's
> tantamount to the same thing...

They will be similar to three separate sites except A) All will be at the
same domain, and B) each will share the same master page and look and feel.

Thanks.

Signature

Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Mark Rae [MVP] - 04 Nov 2007 19:26 GMT
>> If the three menus are similar enough, I'd just have one which you then
>> amend as necessary as the MasterPage gets loaded by the content pages...
>
> Each of the three menus would probably have a completely different set of
> links/pages. Is that what you meant by "similar?"

In that case, I'd probably use three separate <asp:Menu /> controls, hiding
any two of them as required...

> Do you not really see the ASP.NET navigation controls being helpful for
> this?

???

>> Again, it depends how different the functionality is between the three
>> types - I guess it would have to be *really* different to justify
[quoted text clipped - 4 lines]
> same domain, and B) each will share the same master page and look and
> feel.

I guess then it might make sense to have them as separate folders - it would
certainly help maintainability...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Jonathan Wood - 04 Nov 2007 20:53 GMT
Mark,

> In that case, I'd probably use three separate <asp:Menu /> controls,
> hiding any two of them as required...

That might be something to try.

I was thinking the ASP.NET navigation controls might have stuff for showing
different selections based on the role of the current user. But I'm not sure
where I picked up that thought.

Thanks.

Signature

Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.