How to update the MasterPage "header"
Hi,
I am a newbie and attempting to learn asp.net.
I have a login textbox, a password textbox, a login button and a LoginStatus label at the top of the master page (in what I would call the "header" section/area). When the login button is clicked, I do the click event of the button, validate the user, and then redirect to the "registration.aspx" page if login was successful. I would like to update the LoginStatus label with a string such as "Welcome {user's username}". As folks navigate through out the various pages of the website, I would like to keep the lblLoginStatus displayed. I want the label to be displayed when the "registration.aspx" is finished loading to give a visual indicator that the login was successful.
I don't know the appropriate approach to accomplish this. I hope this message makes sense.
Thanks
Keith
|