If you user a DAL like SubSonic many have a ToJson() function.  This
article might help.  Maybe you could tweak it to return things in the
jqGrid format.  
http://www.codeproject.com/KB/aspnet/ASPNET_DataTable_to_JSON.aspx

I think a DAL or Linq or something else that handles paging is your
best bet though.  I use SubSonic and have written an ashx to return
the json give querystring parameters.

Hth,

Dave


On Aug 4, 1:58 pm, achu <akbat...@gmail.com> wrote:
> Hello Friends,
>
> I’m using jqGrid in ASP.NET. jqGrid is literally good. As of now, I’m
> using Handler(ashx) or WebService(asmx) to convert the DataTable into
> JSON and display in the Grid. Can I use c# code behind and bind the
> Data? I mean c# method convert the DataTable into JSON? I’m trying, if
> any one has done or have any idea, please let me know. I cannot use
> WebService in my project, that is the reason I need to use c# code
> behind.
>
> Thanks and Regards,
> Achutha Krishnan

Reply via email to