Newbie question...

Discussion in 'ASP .Net Building Controls' started by Griff, Nov 18, 2004.

  1. Griff

    Griff Guest

    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
    replicated.

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

    Thanks

    Griff

    Oh, and PS - I presume that a pre-compiled server control is also preferred
    to a user control?
     
    Griff, Nov 18, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jenny

    dotnet newbie question

    Jenny, Jul 13, 2003, in forum: ASP .Net
    Replies:
    9
    Views:
    1,361
    K_Lee
    Nov 6, 2003
  2. Alan S.

    Re: A newbie .NET question

    Alan S., Sep 4, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    977
    Jerry Dennany
    Sep 26, 2003
  3. Id0x
    Replies:
    4
    Views:
    1,418
    Erik Max Francis
    Jul 21, 2003
  4. cjl
    Replies:
    3
    Views:
    1,141
    John Nagle
    May 21, 2007
  5. JohnE

    newbie with newbie questions

    JohnE, Aug 17, 2009, in forum: ASP .Net
    Replies:
    3
    Views:
    743
    Gregory A. Beamer
    Aug 17, 2009
  6. Jerry C.
    Replies:
    8
    Views:
    544
    Uri Guttman
    Nov 23, 2003
  7. moonhkt
    Replies:
    2
    Views:
    336
    Chris Angelico
    Sep 16, 2012
  8. Dennis Lee Bieber

    Re: Newbie to python. Very newbie question

    Dennis Lee Bieber, Apr 7, 2013, in forum: Python
    Replies:
    1
    Views:
    147
    Miki Tebeka
    Apr 8, 2013
Loading...