But at the time of edit when i clicked on edit button and update all values and submit that values it is updated perfectly in database but page is not able to redirect again to
You can remove this code from your controller , as you are doing operation same page so no need to redirect this. Anyways at last you are returning to view with updated data so jus remove this code from your controller,
return RedirectToAction("Index");
LEt me know if still you are facing any issue.
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
amitpatel.it
Star
7966 Points
1865 Posts
Re: How to clear Url or redirect Url in mvc3?
Apr 18, 2012 07:29 AM|LINK
You can remove this code from your controller , as you are doing operation same page so no need to redirect this. Anyways at last you are returning to view with updated data so jus remove this code from your controller,
return RedirectToAction("Index");LEt me know if still you are facing any issue.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application