newbie: asp.net 2.0 - what is best practice here

J

Jeff

Hey

IDE: Visual Web developer 2005 express (downloaded yesterday from MS)

In my project am I creating a master page, because a lot of the pages on the
site will have the much the same look....

In this master page have I placed a menu, Here is the PROBLEM. when user is
not logged in some of the menu items in the menu should be replaced with
some other menu items.... For example the menu item "My Profile" should
change to "Login", or "Create Profile" for users that are not logged in...

My solutions to this problem is (I'm a newbie so really would like your
feedback about my solutions):

Solution A:
Add a Loginview to the master page. In this loginview I place the menus for
both unauthenticated and authenticated (2 menus)... The loginview will show
different menus based on the user login status: "unauthenticated" or
"authenticated"

Solution B:
If the user is not logged in, then programmatically replace the menu item
text, for example from "My Profile" to "Login"... using dynamicmenuitems...
This solution must be wrong,

I would prefer using solution A, but I'm not sure about the capabillities of
dynamicmenuitems, maybe dynamicmenuitems could be used??

What do u suggest I should do?

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top