Visual Studio .NET - Client-Side handling of treeview and listbox ctrl
Asked By orb1234 developer
30-Jul-04 02:38 AM
Hi,
I have a page where I use the IE Treeview control (populated from a XML) and the ListBox control. I need to use Client-Side handling to move the selectedItem text value from the treeview to the ListBox. I have an Image server control that has an "onclick" event that activates a JS function.
All controls are created dynamically by the code-behind file.
The situation is that I am able to access both the treeview and listbox controls in the JS function on the Client-Side, but I'm unable to find the syntax for getting the selected item from the treeview and adding a new item to the listbox (having the properties of the treeview item) in JavaScript.
Any information will be most appreciated
Thanks
Client-Side handling of treeview and listbox ctrl
You need to call the function by onselectedindexchange attribure.
U can get the node by (Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e) event
node_name =Treeview1.GetNodeFromIndex(e.NewNode).Text.ToString() ;
hope it will be useful fo r u.
Have a nice day
Surendra
Visual Studio .net .NET Framework Hi NG, ich habe vor längerer Zeit mit Visual Studio .Net 2003 gearbeitet und überlege momentan auf einen neueren Stand upzudaten. Ein Visual Studio .Net 2008 scheint es nicht zu geben. Habe zumindest mit googeln nichts gefunden. Was
Wise for Visual Studio.NET Wise for Visual Studio.NET By Peter A. Bromberg, Ph.D. To "Print This Page" Link Peter Bromberg Wise for Visual Studio .NET is a total and complete installation development system for creating and editing Windows® Installer
Visual Studio versioning . . . . how to tell? .NET Framework To my knowledge, Visual studio 6 was released in 1998, then Visual Studio .NET 2002 is VS 7, then Visual Studio .NET 2003 is VS 7.1, then Visual
visual studio.net 2003 and Access 2007 database .NET Framework Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great success. Now
Is Visual Studio self-hosting ? .NET Framework Does Microsoft use Visual Studio IDE, Visual Studio Debugger, Visual Studio Linker and Visual Studio compiler for developing Visual Studio ? Or is Visual Studio not