Hi, how can we pass model to another page?
I'am using ASP.Net Core2.0
The data is passed in address bar but its not showing up in the model.
Controller
[HttpPost]
public IActionResult Error(){
return RedirectToAction(nameof(ExceptionPageController.Index), "ExceptionPage", new ExceptionPageModel { ErrorMessage ="Hello World!"});
}
View
@model Webeu.Models.ExceptionPage.ExceptionPageModel
@{
ViewData["Title"] = "Index";
}
@{
ViewData["Title"] = "Index";
}
Rupesh KahanePosted Jul 2, 2018, 9:02 AM