Mar 15, 2012, 10:04 PM
how to call direct method in asp.net mvc3
Direct method appears to be cool feature but i am not able to call in asp.net MVC3
i use like this in my controller i have declared a method like this
if its not possible then also tell me how can i call a store with number field i have scenario on selection of a combox box i need to fetch data from database to show in numberfield how can i attach store with numberfield i was thinking to achieve it using direct method any idea how can i do it???
i use like this in my controller i have declared a method like this
[DirectMethod]
public double? GetData(int id=0, int id3=0)
{
double? amount = DB.GetMthod(id,id3);
return amount;
}
and in my view i am calling like thisExt.net.DirectMethods.GetData(1,3)
but its never being called can any body tell me does ext2.0 supports direct methods in asp.net mvc??if its not possible then also tell me how can i call a store with number field i have scenario on selection of a combox box i need to fetch data from database to show in numberfield how can i attach store with numberfield i was thinking to achieve it using direct method any idea how can i do it???
Last edited by Daniil; Mar 16, 2012 at 9:04 AM.
Reason: Please use [CODE] tags