Dec 14, 2012, 3:40 PM
[MVC] This works in Visual Studio, but Listener.Click.Handler doesn't call controller on IIS.
I have the following code. Clicking on the "Save" button when running on the Visual Studio server calls the "SaveChanges" function in the HomeController just fine, but nothing happens running the same code on IIS.
Views/Home/Index.cshtml:
Views/Home/Index.cshtml:
...FormPanel()
.Url("/Home/SaveChanges")
.BottomBar(bottombar =>{
bottombar.Add(Html.X().Toolbar()
.Items(bottombarItems => {
bottombarItems.Add(Html.X().Button()
.Listeners(listener => {
listener.Click.Handler = @"this.up('form').submit();";
}))
}))
})
Controllers/HomeController.cs:public ActionResult SaveChanges(FormCollection values)
{
Debug.WriteLine("save");
...
}
Last edited by KBorkiewicz; Dec 14, 2012 at 4:21 PM.