Hi there,
I am not exactly sure where you are calling this in the Master Page, but it could be that you're too late. In addition, you're not really setting a FormatString anymore (e.g. no {0}) so there's not much to Format for ASP.NET.
If you are already building up the entire welcome text, drop the LoginName control and simply assign the text to a Label instead:
Code:
myLabel.Text = "Demo: Welcome, " + Context.User.Identity.Name + "<" + Membership.GetUser().Email().ToString + ">"
And another thing: could it be that it *does* work but you're not seeing the e--mail address?
<
[email protected]> will be interpreted as an unknown tag by the browser and thus ignored.
Try "%gt;" and "<" instead.
Cheers,
Imar