Hello In my project I have to pass a welcome message with username to the Index Page Its a MVC3 ASP.Net Razor project
There are two controllers are there; O
You could retrieve the currently authenticated username from the User instance:
User
[Authorize] public ActionResult Index() { string username = User.Identity.Name; ... }