Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2003, 05:57 AM
Registered User
 
Join Date: Sep 2003
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.


 
Old September 9th, 2004, 10:54 AM
Registered User
 
Join Date: Sep 2004
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.


 
Old September 9th, 2004, 10:55 AM
Registered User
 
Join Date: Sep 2004
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






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.