0

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

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by RunTimeError
0

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/

Edited by RunTimeError: Typo

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.