Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Newbie question...

Thread Tools

Newbie question...

Posts: n/a
I'm thinking about creating a "navigation tool" control for a web site.

The idea is that individual users will only be allowed access to certain
parts of the site, so:
User A should see options for [catalog] [search]
User B should see options for [catalog] [search] [budget]

etc, etc.

So...the question in my mind is whether the navigation control should:
a) encapsulate the code for identifying the user and working out for
itself which options to show
b) the code for identifying the user should be page based and dictate to
the control through public methods/properties what should be shown.

I suspect that the former makes more sense as the code is written just once,
but all the examples I've seen so far expose this control to the user
page...if the control is on several pages then this code has to be

If someone could suggest what is the preferred method...



Oh, and PS - I presume that a pre-compiled server control is also preferred
to a user control?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie with newbie questions JohnE ASP .Net 3 08-17-2009 10:10 PM
VONAGE Newbie w/newbie question VOIP 0 08-11-2007 01:40 PM
another newbie question from another newbie.... Lee UK VOIP 4 05-17-2005 04:10 PM
newbie: cisco vlan newbie question No Spam Cisco 3 06-07-2004 10:02 AM
Newbie! I'm a newbie! What's wrong with this program? Id0x Python 4 07-20-2003 11:40 PM