ASP.NET MVC3 - Action without reloading the site

I have an MVC3 application with a form for editing data. This includes only a drop-down list. Any opportunity to execute Controller (HttpPost) method without rebooting?

If not, how can I return the current site (because I have the same form on different sites).

+3
source share
1 answer

Yes, try XmlHttpRequest, better known as AJAX for executing controllers. This is similar to sending a request from a browser to a server in a background thread that does not cause the page to reload.

read these blogs:

http://www.nikhilk.net/Ajax-MVC.aspx

http://dotnetslackers.com/articles/aspnet/ASP-NET-MVC-2-0-and-AJAX-Part-1.aspx

ajax, , URL- :

public ActionResult Submit()
{
     // do something
     return Redirect(Request.UrlReferrer.ToString());
}
+11

All Articles