Redirect to action method is not working but redirect is working fine
return RedirectToAction("about", "home");
return Redirect("~/Home/About");
don't know what was the reason behind that
My routeconfig is as below :
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
event this is also not working
@using (Html.BeginForm("Upload", "fileupload", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
Just redirecting to error page saying : The RouteData must contain an item named 'path' with a non-empty string value