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 SinghRank #66 · 26.2K reputationPosted Jul 6, 2021, 7:52 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jul 6, 2021, 7:39 AM EDT
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 6, 2021, 7:46 AM EDT