datatables.aspnet
datatables.aspnet copied to clipboard
request null when using asp.net webform with webapi
I created project that uses webform with webapi. I copied your webapi sample. when page loads, webapi function is called but request is null. how to solve?
Seems that there's a problem with the request itself. Might be missing something. Can you copy/paste it's content here? Please, consider using Fiddler to catch the request content.
request is null in this function public JsonResult<IDataTablesResponse> Get(IDataTablesRequest request)
I had this problem because I forgot to register the data table configuration in the global asax. @sgtagan, make sure you add the following code to your global: GlobalConfiguration.Configuration.RegisterDataTables();
Even after adding the global configuration to global.asax it still does not work. I am using autofac is there a way to setup datatables on that? I am getting request as null