Hi
How the below line works
Response.Redirect(String.Format("~/Error/{0}/?message={1}", action, exception.Message));
I have only 1 Action in Controller
public class ErrorController : Controller
{
public ActionResult Index(string message)
{
ViewBag.ErrorMessage = message;
return View();
}
}
Thanks
Sachin SinghPosted Jul 6, 2021, 11:52 AM
Ramco RamcoPosted Jul 6, 2021, 11:46 AM
Sachin SinghPosted Jul 6, 2021, 11:39 AM