Cannot post successfully if not using cassini for JQuery posts in ASP.NET MVC -
When I started my project using Visual Studio Development Server (Cassini: Monkey),
"Some Controllers / Some Methods".
When I use a local host to run with the following URLS, it does not work
"" or "SomeController / SomeMethod".
Anyone facing this problem?
Thanks
Attempt to use the URL to use the URL Please. So that they are correct, even then Virtual Root does not matter.
$ Post ('& lt;% = Url.Action ("SomeMethod", "some controller")%> Data, Function () {... callback ..},' Jason '); If it still does not work, we will likely need to see your routing set up. It would also be useful to know whether ActionLinks works, but jQuery does not have AJAX. If this is the case and the URLs are the same, then you may not have the correct URL for your Javascript files. In that case, you want to use the URL to map those URLs. That's why they are right.
& lt; Script type = "text / javascript" src = '& lt;% = Url.Content ("~ / scripts / jquery-1.3.2.js')% & gt; & Gt; & lt; / script & gt;
Comments
Post a Comment