Different header for different login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nussu
    New Member
    • Nov 2007
    • 23

    Different header for different login

    Hi,

    I have two pages. First page is login.aspx,seco nd is deatils.aspx.
    When i enter different credentials in loginpage i need to get different headers in details.aspx page.
    For example if i enter login id and password as stud and stud i need to get one header in details.aspx and if i enter as emp and emp i need to get different header in the same page details.aspx.

    Plz suggest me how to achieve this.

    Regards,
    nussu
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by nussu
    Hi,

    I have two pages. First page is login.aspx,seco nd is deatils.aspx.
    When i enter different credentials in loginpage i need to get different headers in details.aspx page.
    For example if i enter login id and password as stud and stud i need to get one header in details.aspx and if i enter as emp and emp i need to get different header in the same page details.aspx.

    Plz suggest me how to achieve this.

    Regards,
    nussu
    You will need to pass a session value or a querystring value to the details.aspx page. In the page_load event of the details page you will want to check the value of the session variable or the querystring (whichever you decide to use). Once you identify the value simply set the header that needs to be shown on the details page.

    Nathan

    Comment

    Working...