I see, the most common way to return JSON is to use [WebMethod] example (in C#)
[System.Web.Services.WebMethod(EnableSession = true)] public static object Fetch() { clsMyObject a = new clsMyObject; a.Name="George'; return a; } PS: you need EnableSession = true obly if you using Session variable in your method. George. On Nov 18, 9:34 am, mthakershi <[EMAIL PROTECTED]> wrote: > What I wanted to know is: > > In PHP example, on client side it says something like url: sources.php > and then sources.php file returns JSON treeview nodes. What would be > the server-side equivalent in ASP.NET for that? I am not able to find > any example for that. > > Thank you for your help. > > On Nov 17, 7:21 pm, George <[EMAIL PROTECTED]> wrote: > > > > > I am not sure i understand....What is the exact problem? > > > JQuery is 100% client side... ASP.NET is 100% server side... > > > You should not have a problem to generate HTML with ASP.NET and use it > > with JQuery tree plugin > > > The only this i can guess you having a problem with is IDs since > > ASP.NET generates it's own elemnet's IDs. But you can use class if you > > want.. Or not mark items as runat="server" then ID's will be the ones > > that you assigned. > > > George. > > > On Nov 17, 8:00 pm, mthakershi <[EMAIL PROTECTED]> wrote: > > > > Hi, I am trying to implement JQuery treeview with asp.net. I have > > > master page and treeview is in child page. Can someone point me to an > > > example that shows ASPX integration? I saw PHP one but I am not able > > > to replicate the same thing in ASP.NET. > > > > Any help is appreciated. > > > > Thank you.- Hide quoted text - > > - Show quoted text -