473,883 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TreeView Control in C#

Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.

I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.

Many thanks.
Nov 16 '05 #1
5 19902
http://www.411asp.net/home/assembly/...rice&order=asc

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"SoKool" <So****@discuss ions.microsoft. com> wrote in message
news:97******** *************** ***********@mic rosoft.com...
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview
control.
I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.
Many thanks.

Nov 16 '05 #2
Hi there,

It won't be that hard to create a custom control.

Some additional information of using Treeview.

http://www.syncfusion.com/FAQ/WinFor...c91c.asp#q617q

create a user control and inherit from System.Windows. Forms.TreeView

example,

class treeViewUserCon trol : System.Windows. Forms.TreeView
{
// get the sql table data and past in here.. or whatever.
}

Correct me if i am wrong. Cheers.
--
Regards,
Chua Wen Ching :)
"SoKool" wrote:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.

I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.

Many thanks.

Nov 16 '05 #3
Thanks for the answer.

You said that TreeView can be built on the Windows.Forms.T reeView base class.
Does that mean that I will be able to use that in ASP. NET.

What I mean to ask is that, what are the extra requirements for an ASP.Net treeview control, over a standard windows treeview control.

Thanks
Shailen S
"Chua Wen Ching" wrote:
Hi there,

It won't be that hard to create a custom control.

Some additional information of using Treeview.

http://www.syncfusion.com/FAQ/WinFor...c91c.asp#q617q

create a user control and inherit from System.Windows. Forms.TreeView

example,

class treeViewUserCon trol : System.Windows. Forms.TreeView
{
// get the sql table data and past in here.. or whatever.
}

Correct me if i am wrong. Cheers.
--
Regards,
Chua Wen Ching :)
"SoKool" wrote:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.

I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.

Many thanks.

Nov 16 '05 #4
Hi Shailen Sukul,

Oops. I am too used with windows form development. Okay, there is an article on asp.net treeview web control.

Check this out:

http://msdn.microsoft.com/library/de...webcontrol.asp

Hope it helps. Good Luck!
--
Regards,
Chua Wen Ching :)
"Shailen Sukul" wrote:
Thanks for the answer.

You said that TreeView can be built on the Windows.Forms.T reeView base class.
Does that mean that I will be able to use that in ASP. NET.

What I mean to ask is that, what are the extra requirements for an ASP.Net treeview control, over a standard windows treeview control.

Thanks
Shailen S
"Chua Wen Ching" wrote:
Hi there,

It won't be that hard to create a custom control.

Some additional information of using Treeview.

http://www.syncfusion.com/FAQ/WinFor...c91c.asp#q617q

create a user control and inherit from System.Windows. Forms.TreeView

example,

class treeViewUserCon trol : System.Windows. Forms.TreeView
{
// get the sql table data and past in here.. or whatever.
}

Correct me if i am wrong. Cheers.
--
Regards,
Chua Wen Ching :)
"SoKool" wrote:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.

I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.

Many thanks.

Nov 16 '05 #5
Thanks mate.
That was exactly what I wanted.

Cheers
----------------
Shailen Sukul
BSc, Mcsd, Mcad

"Imaginatio n is more important than knowledge." - Einstein
"Chua Wen Ching" wrote:
Hi Shailen Sukul,

Oops. I am too used with windows form development. Okay, there is an article on asp.net treeview web control.

Check this out:

http://msdn.microsoft.com/library/de...webcontrol.asp

Hope it helps. Good Luck!
--
Regards,
Chua Wen Ching :)
"Shailen Sukul" wrote:
Thanks for the answer.

You said that TreeView can be built on the Windows.Forms.T reeView base class.
Does that mean that I will be able to use that in ASP. NET.

What I mean to ask is that, what are the extra requirements for an ASP.Net treeview control, over a standard windows treeview control.

Thanks
Shailen S
"Chua Wen Ching" wrote:
Hi there,

It won't be that hard to create a custom control.

Some additional information of using Treeview.

http://www.syncfusion.com/FAQ/WinFor...c91c.asp#q617q

create a user control and inherit from System.Windows. Forms.TreeView

example,

class treeViewUserCon trol : System.Windows. Forms.TreeView
{
// get the sql table data and past in here.. or whatever.
}

Correct me if i am wrong. Cheers.
--
Regards,
Chua Wen Ching :)
"SoKool" wrote:

> Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.
>
> I intend to use a treeview to generate a dynamic menu by collating data from a Sql Server Table.
>
> Many thanks.

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4417
by: Hrvoje Voda | last post by:
What is wrong in this code? private void tree_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter ) {
3
2841
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%"" BORDER=""0"" CELLSPACING=""0"" CELLPADDING=""0"" ID=""Table1""> " & vbNewLine) writer.Write(" <tr>" & vbNewLine) writer.Write(" <td>" & vbNewLine)
4
14186
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that you can navigate through the file system as well.) I've found some on the web, but all of them just have the drives and desktop directories and are static in that you cannot expand the directories. I normally build a treeview control to do it with,...
10
2372
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a top border. Is it possible to have more than 1 style at the same level (parent node) when using a SiteMap? I want it to appear something like this and I can only find a way to either have the border on all root nodes or none at all. In...
1
2569
by: musosdev | last post by:
Hi guys I was using the Microsoft.Web.UI.WebControls extra namespace in my application to provide me with a TreeView control. I was using specifically ..GetNodeFromIndex(), SelectedNodeIndex and NodeData. All 3 of which are now giving errors is the new Asp.net TreeView. I'm found the Value property which replaces NodeData, but what about GetNodeFromIndex and SelectedNodeIndex. Are they just... gone!? :(
2
1580
by: rolf.oltmans | last post by:
Hello all, I need to place treeview control in Grid control. I need to place it in a grid because I need to show calendar against every node. Is placing a treeview in grid possible? If I need to create my own control that would include capabilities of both treeview and Grid what would I have to do? Being new to asp.net I guess I've to make a control that would inherit from treeview and grid. But would changes I've to make in my...
1
4941
by: doemon | last post by:
Hi, I'm working on a pagination control and I need to dynamically rerender a treeview to display the next set of nodes depending on which page we're on. For example, page 1 will dispaly only nodes 1 to 10, but when the user clicks , the tree will display nodes 11 to 20. Page 1 will is loaded when the page that contains the ascx (parent of the treeview) is loaded. This is all cool. The treeview displays correctly. When I click the ...
0
2003
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image with each TreeView node based upon a custom attribute I have included in the siteMapNode nodes of my .sitemap file. This all works as desired, including the security trimming which is especially desired behavior. The nodes of the TreeView...
0
12795
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My TreeView is defined to has depth =3 only.
0
9944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9793
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10752
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10420
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7974
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4225
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.