Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 25th, 2003, 05:57 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Treeview Webcontrol problem

Hi All,
Can any one let me know how to read the attributes of a node in Treview webcontrol using c# languge.
I am trying with the following lines of code, but not working.

void mySelectChangeFn(Object sender, TreeViewSelectEventArgs e)
{
  String SelectedNode = "", AttributeValue = "";

  SelectedNode += e.NewNode.ToString();
  TreeNode Node = new TreeNode();
  Node = TreeView.GetNodeFromIndex(SelectedNode);
  AttributeValue = Node.FindNodeAttribute("table").ToString();
  Response.Write(AttributeValue);
}

I don't know what I am missing here.

Thanks in advance.
Cheers,
Victor.


Reply With Quote
  #2 (permalink)  
Old September 9th, 2004, 10:54 AM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Victor
 Hi All,
Can any one let me know how to read the attributes of a node in Treview webcontrol using c# languge.
I am trying with the following lines of code, but not working.

void mySelectChangeFn(Object sender, TreeViewSelectEventArgs e)
{
String SelectedNode = "", AttributeValue = "";

SelectedNode += e.NewNode.ToString();
TreeNode Node = new TreeNode();
Node = TreeView.GetNodeFromIndex(SelectedNode);
AttributeValue = Node.FindNodeAttribute("table").ToString();
Response.Write(AttributeValue);
}

I don't know what I am missing here.

Thanks in advance.
Cheers,
Victor.


Reply With Quote
  #3 (permalink)  
Old September 9th, 2004, 10:55 AM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Even I am searching for the same. did you finde the solution for this problem?

- Sachin

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem getting value out of a custom webcontrol SV ASP.NET 2.0 Basics 0 November 17th, 2007 03:55 PM
problem applying a style to a webcontrol ACE2084 VS.NET 2002/2003 3 March 10th, 2005 02:10 PM
problem with UI Webcontrol-treeview hawing General .NET 1 December 30th, 2004 11:19 AM
DownLoad treeview ----WebControl HandSomeLi All Other Wrox Books 2 March 15th, 2004 10:10 AM
help in TreeView Webcontrol Victor .NET Web Services 1 September 25th, 2003 06:06 PM



All times are GMT -4. The time now is 10:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.