My label text in site.master is changing, but problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saikat1529
    New Member
    • Apr 2014
    • 1

    My label text in site.master is changing, but problem

    Hi!
    My label in site.master is changing, but when i am navigating in different page. Its simply disappear and gone.
    I am taking username and password in login page. then i am validating those page from my database. After that i am changing my label text in my site.master page with "Welcome" message. But when i am clicking on my menu item to navigate in different page. It disappear. can somebody help me. Because i want that label.text intact until user click logout button.please help me..
    Attached Files
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    In your master page C# or VB.NET code, you always need to set the text of the label depending on whether or not the user is logged in. You can't just set this once. Maybe put it in the page load event handling code.

    -Frinny

    Comment

    Working...