Custumizing Pages based on security status

Discussion in 'ASP .Net Security' started by Devin, Apr 27, 2004.

  1. Devin

    Devin Guest

    I am trying to create pages that are viewable without a login, but if a person does login I want certian pages to display customized content. For example, I have a calendar page that loads up to anyone. But on the same page I want to restrict showing the hyperlink to "Adding a calendar Event" to someone who logs in with that permission. How can I do this because the login examples i have found through form based authentication require that the whole page is either shown or not show. Is this correct or am I wrong

    Thanks in advance

    Devin
    Devin, Apr 27, 2004
    #1
    1. Advertising

  2. Devin

    Guest Guest

    If (IsAuthenticated==true )
    {
    CustomerUserControl.Visible = true;
    }e
    else
    { CustomerUserControl.Visible = false; }

    You could expound upon this so that users have different roles and thus have
    access to different content

    Hope this helps - Posting is provided as is


    "Devin" <> wrote in message
    news:...
    >I am trying to create pages that are viewable without a login, but if a
    >person does login I want certian pages to display customized content. For
    >example, I have a calendar page that loads up to anyone. But on the same
    >page I want to restrict showing the hyperlink to "Adding a calendar Event"
    >to someone who logs in with that permission. How can I do this because the
    >login examples i have found through form based authentication require that
    >the whole page is either shown or not show. Is this correct or am I wrong?
    >
    > Thanks in advance.
    >
    > Devin
    Guest, Apr 27, 2004
    #2
    1. Advertising

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. saha
    Replies:
    0
    Views:
    4,029
  2. Shug
    Replies:
    13
    Views:
    881
    Philipp
    Dec 15, 2006
  3. Shug
    Replies:
    13
    Views:
    936
    Philipp
    Dec 15, 2006
  4. harryos
    Replies:
    0
    Views:
    370
    harryos
    Oct 13, 2010
  5. Kursat
    Replies:
    1
    Views:
    294
    Dominick Baier
    May 7, 2007
Loading...

Share This Page