I'm a real newbie when it comes to web apps.
What I'd like to do is add some code to my .master page. The .master page has a Login control, and I'd like to display something like "Welcome, Guest" or "Welcome, Elvis" when the user is logged in.
I added a label to the master page and tried to do something like
but even when successfully logged in, it just displays "Welcome,".Code:<asp:Label ID="lblWelcome" runat="server" Text="Welcome, <%=Login1.UserName %>" ></asp:Label>
I guess master pages don't have a code file associated with them? I'm not sure. Searched around, but I'm so ignorant I'm not sure what I'm looking for.
Any help is appreciated, thanks.
Mike




Reply With Quote