Jan 08, 2010, 2:20 AM
why i can't call the ajax method in mvc applications?
in controller:
sorry,my english is poor!
thanks you!
[AjaxMethod]
public AjaxResult Test()
{
return new AjaxResult { Result = "Hello world" };
}
in aspx page:<ext:Button ID="btnSearch" runat="server" Text="test" >
<Listeners>
<Click Handler="Coolite.AjaxMethods.Test();" />
</Listeners>
</ext:Button>
why can't find the test method;sorry,my english is poor!
thanks you!