I am using the code below on my sitefinity mvc widget to redirect to the index method with a conrtoller and getting 404 error any ideas.
[HttpPost]
public ActionResult editSubjectDetails(eLearningSubjectModel model)
{
return RedirectToAction("Index", "PRManagerController");
}
I have found the solution
login into sitefinity click administartion> settings>advantced>pages and tick EnableBackwardCompatabilityForPagesUrls and the code that i have added works fine.
redirect to action changes the url . if you have to call the method then call the page that are using your mvc widget
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.