I have a simple program. On the left I have a tree view (obout) very good by the way, and a grid on the right.

In my cs file, I wrote a class for the grid. I pass a value and the grid is populated.

When I click on a "leaf", I want to reopen the grid with the value of the "leaf".

When I click on a "leaf" the control is back to javascript and I have the value of the leaf.

My question now is how can I call the class from javascript ?

Also is there's another solution ?

Thanks
Real

Er..I think it is possible but the problem lies in the fact that the Java Script code executes on the Client side will the C# class you wrote to handle the tree handles code on the server side. Here are a few links:

http://stackoverflow.com/questions/3713/call-asp-net-function-from-javascript

Another:

http://sappidireddy.wordpress.com/2008/03/31/how-to-call-server-side-function-from-client-side-code-using-pagemethods-in-aspnet-ajax/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.