CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 9/29/2003 8:22:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
pdraigh
Asp.Net User
Treeview - How to get attributes of selected node9/29/2003 8:22:43 PM

0/0

XML source looks like:

<TREENODES>
<treenode Text="Academic" ID="24">
<treenode Text="General" ID="25"/>
</treenode>
</TREENODES>


sub for the SelectedIndexChange event looks like:


Sub PickIt(ByVal sender As Object, ByVal e As Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs)
Label1.Text = e.OldNode.ToString
Label2.Text = e.NewNode.ToString
End Sub


How do I get the ID attribute in my onSelectedIndexChange handler?

Thanks,
Pete
arkangyl
Asp.Net User
Re: Treeview - How to get attributes of selected node11/6/2003 1:26:37 PM

0/0

C#

In the OnSelectedIndexChangeEvent, do something like this.

private void tvTest_SelectedIndexChange(object sender, Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e)
{

TreeNode tn = tvTest.GetNodeFromIndex(e.NewNode);
string node_id = tn.ID;
}

Im not exactly sure what it is in VB, but you are looking for the GetNodeFromIndex method and you will pass it the EventArgs e.NewNode or e.OldNode to return a reference to that node.
--::Thinking Clearly - Clearly Thinking::--
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Advances in Concurrent Engineering: Presented at Seventh ISPE International Conference on Concurrent Engineering: Research and Applications, Lyon Cluade Bernard University, France, July 17-20, 2000 Authors: P. Ghodous, Biren Prasad, D. Vandorpe, Pages: 890, Published: 2000
LabVIEW Advanced Programming Techniques: advanced, programming, techniques Authors: Rick Bitter, Taqi Mohiuddin, Matt Nawrocki, Pages: 440, Published: 2001
Pro .NET 2.0 XML Authors: Bipin Joshi, Pages: 499, Published: 2007
ASP.NET AJAX Programmer's Reference: With ASP.NET 2.0 Or ASP.NET 3.5 Authors: Shahram Khosravi, Pages: 1522, Published: 2007
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
Learning ASP.NET 3.5 Authors: Jesse Liberty, Dan Hurwitz, Brian MacDonald, Pages: 576, Published: 2008
LDAP Programming with Java Authors: Rob Weltman, Tony Dahbura, Pages: 692, Published: 2000
Emerging Spatial Information Systems and Applications Authors: Brian N. Hilton, Pages: 394, Published: 2006
Data Mining: Practical Machine Learning Tools and Techniques Authors: Ian H. Witten, Eibe Frank, Pages: 525, Published: 2005
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006

Web:
Attributes on new nodes in a treeview : treeview, node How can i change the attributes on the newly added nodes in a treeview? ... 5, Get Selected Node number in a treeview · MS Visual Basic ...
CodeProject: ASP.NET TreeView Control & the Client's Browser. Free ... There is a JavaScript function that allows us to get a handle to the tree node object the end user has selected: // Gets a handle to the TreeView's selected ...
ASP.NET Treeview selectedNodeStyle - .NET ASP NET Treeview selectedNodeStyle. Get answers to your questions in our . ... TreeView1.Attributes["oldnodepath"] = TreeView1.SelectedNode. ...
Modify a treeview node that is bound to xmldatasource using Linq ... On the treeview selectednodechange I want to modify xml attributes for the selected node using Linq. I found an article that showed me how to do this at ...
About the TreeView WebControls Client Behavior Selected—The TREENODE is the selected node on the tree view. ..... Important The only way to set and get attributes of the TreeNode or TreeNodeType objects ...
ASP.NET Treeview selectedNodeStyle TreeView1.Attributes["oldnodepath"] = TreeView1.SelectedNode.ValuePath; .... how do i get openfiledialogue box in VB.NET. ...
ASP.NET Treeview selectedNodeStyle TreeView1.Attributes["oldnodepath"] = TreeView1.SelectedNode. ... TreeNode to act as hyperlink, the "SelectedNodeChanged" event won't get ...
ASP.NET 2.0 TreeView without Postback? Solved! | Bulahema Workshop NET 2.0 TreeView control. This control is meant to show a tree of items .... Target attribute. // Now I can retrieve my "value" for the selected node here. ...
Navigate hierarchical site data with ASP.NET’s TreeView control ... Aug 14, 2007 ... This includes styling root, leaf, parent, and the selected nodes via ... with attributes of the TreeView element to control presentation. ...
Tree View Component Reference - xfy technology For the nodes selected in tree view component, its label's background is drawn in the ... Elements and attributes used to use a tree view component in tree ...




Search This Site:










site location in vs2005

dnn skinning issue

dnn1.0.10e login fails when new (_blank) window is opened in child portal

database problem

the type initializer for 'bll.customer' threw an exception.

user locked

stored procedures converted to inline sql

enterprise library entlib june 2005 for framenwork 1.1 in vb

signin.ascx : impossibility to loggin

ssl and the lock icon

cookie share between c# and vb.net

createuserwizard causes double postback

oo programming is evil with related to db

i keep getting an error when i try to search on 'pane skins'

how 2 insert a picture to a word automation object ?

how to test the performance of my website ?

using process.start

calling a js function before submitting update form

installing dnn 4.0 with sql server

control keep state

set up requirements

how to add controls to a control collection?

how to override the maintainscrollpositiononpostback on ceratain event

multiple days event

photo gallery

string connection

multiple dnn implementations, one database - any problems?

persisting childcontrols at designtime

create/drop/alter view in access database using odbc

where can i download a machine.config file. i have changed mine by mistake and now asp.net will not start

 
All Times Are GMT