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 can try with Session, like
Session["username"] = username;
and for recover in the other controller use
var username = (string)Session["username"]
or in your redirect try with
return RedirectToAction("Index", "Nome", new{ username: username})
but the action of your controller must have as argument the (string username) like
public ActionResult Index(string username)
{
return View();
}