[HttpPost, ValidateInput(false)] public ActionResult LogOn(Login model) { if (ModelState.IsValid) { if (model.IsUserExist(model.EmailId, model.Password)) { ViewBag.UserName = model.EmailId; //I tried this which didn't worked //if (model.select(model.EmailId)) //{ // return RedirectToAction("Display", "Home"); // } // here I would like to code to show the data of the one who logged in with Edit, delete options } else { ModelState.AddModelError("", "EmailId or Password Incorrect."); } } return View(model); }
return RedirectToAction("Display", "Home")
HttpContext.Current.User.Identity.Name
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)