the javascript function alert() before and after Map1.ajaxCallAction() gets called but the C# action function defined in the Controller did not.
Anything i am missing?
I have the up to date version based on MVC 3, project in VS2012.
Thanks,
Map1.ajaxCallAction does not call my Action in Controller?
figured it out: my default route parameters do not match
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{ReportId}", // URL with parameters
new { controller = "Home", action = "Index", ReportId = "TUSHWSR2j6" } // Parameter defaults
);
i had this: "{controller}/{action}/{id}", // URL with parameters
Guangming,
Glad to hear you figure it out by yourself.
If any other queries, don’t hesitate to let us know.
Regards,
Troy