public ActionResult Profile()
{
var cookie = Request.Cookies["RememberUsername"];
var uname = cookie;
ViewBag.uname = uname;
return View();
}
The compiler is showing the following error:
Warning1'MvcApplication16.Controllers.sellerController.Profile()' hides inherited member 'System.Web.Mvc.Controller.Profile'. Use the new keyword if hiding was intended.c:\users\lenovo\documents\visual studio 2012\Projects\MvcApplication16\Controllers\sellerController.cs2029MvcApplication16
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 14, 2014, 10:23 AM