473,382 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Can treeview for .net 1.1 on windows 2003?

I want to know can treeview work on windows 2003 for asp.net 1.1 version.
The treeview is free download from microsoft website.

Thanks
Jul 20 '06 #1
3 2007
I want to know can treeview work on windows 2003 for asp.net 1.1 version.
The treeview is free download from microsoft website.

Thanks
Did you complie the treeview control according to given instructions Some problem can come because the csc.exe given in the build.bat is not found. You search it in winnt directory usually you found it in the x:\winnt\dotnetframework\10.11\csc.exe edit build.bat file and paste this path with the csc.exe then save it and run it a dll file created. Create a new asp.net project paste this file in bin directory. Go to add remove controls on control panel and add this dll. You found four new conrols in the control panel .drag treeview control on the webform.
Consider my application containing two tables known as product master and product detail both have one to many relationship . Product master table contain two fields. Product_id as pamary key and product_name while product detail table has three field. Product_id as forgin key from product master table , product_detail_id and product_detail_name . have some one so I used to displace this master detail relationship as below
Public Sub populateTreeview()
Dim defaultStyle As String ‘ show the drew node text accorind to color fonts and background ‘color by default
Dim HoverStyle As String ‘ set the font color background color or similar properties when mouse ‘come over it the treeview nodes text
Dim selectedStyle As String ‘set the font color background color or similar properties when mouse ‘click over it the treeview nodes’ text
defaultStyle = "color:Green;font-size:12pt;font-weight:bold;background:WHITE"
' defaultStyle = "background:White;color:Green;font-size:10pt;font-weight:bold"
HoverStyle = "color:Red;font-name:Arial; font-weight:bold;background:WHITE"
selectedStyle = "color:RED;font-name:Arial;font-weight:bold-italic;background:WHITE"
Dim selectedCollection, defaultcollection, HoverCssCollection As CssCollection
selectedCollection = New CssCollection(selectedStyle)
defaultcollection = New CssCollection(defaultStyle)
HoverCssCollection = New CssCollection(HoverStyle)

Dim s As String
' s = "@color:black;background:white; border:black thin solid;"
' HoverCssCollection = New CssCollection(s)
Dim query As String
Dim objDataset As New DataSet

Dim objconnection as sqlclient .sqlConnection
Connection= new oledb.oleDbConnection(“ Connection String according to you system “)
query = "select Techno_id, Techno_services_name from techno_services_master"
objDataAdapter = New OleDb.OleDbDataAdapter
' objDataSet = New DataSet
objDataAdapter.SelectCommand = New OleDb.OleDbCommand(query, objConnection)
objDataAdapter.Fill(objDataset, tableName)

query = "select techno_id,Techno_services_Detail_no,Techno_service s_detail_name from Techno_services_detail"
objdb.getDataset(objDataset, query, "tblTechnoDetail")
objDataset.Relations.Add("ParentChild", objDataset.Tables("tblTechnoMaster").Columns("Tech no_id"), objDataset.Tables("tblTechnoDetail").Columns("Tech no_id"))
Dim nodeSupp, nodeProd As TreeNode
Dim rowSupp, rowProd As DataRow


For Each rowProdMaster In objDataset.Tables("tblTechnoMaster").Rows
nodeProdMaster = New TreeNode

nodeProdMaster.DefaultStyle = defaultcollection
nodeProdMaster.HoverStyle = HoverCssCollection
nodeProdMaster.SelectedStyle = selectedCollection
nodeProdMaster.ImageUrl = "Imagie/image001.GIF"
nodeProdMaster.Text = rowSupp("Techno_services_name")
nodeProdMaster.ID = rowSupp("Techno_id")
TreeView1.Nodes.Add(nodeProdMaster)
For Each rowProdDetail In rowProdMaster.GetChildRows("ParentChild")
nodeProdDetail = New TreeNode
nodeProdDetail.DefaultStyle = New CssCollection("color:Black;font-size:12pt;background:WHITE")
nodeProdDetail.Text = rowProd("Techno_services_detail_name")
nodeProd.ID = rowProd("Techno_services_detail_no")
nodeDetailMaster.Nodes.Add(nodeProd)
Next
Next

End Sub

Regards
Jul 21 '06 #2
Hi,
thanks for replying.

I did all the above, its working on my development box, which has xp.
Our server has win 2003, there comes the problem.
If i see the page, it says page not found. If I make the treeview invisible in its properties then that page works fine.

Can some one help.

Thanks...........
Jul 21 '06 #3
Does any one has the answer

Thanks................
Jul 24 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: fgh | last post by:
Hello, two questions please: 1) In a treeview, I want to display folders like it is done in Windows Explorer. Do I have to do this manually or can I set something up in VS.NET 2003? 2) Most...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
6
by: Brian Smith | last post by:
Is there a way to avoid the default action of TreeNode expansion/contraction caused by double click? I can add an event handler to pop up my properties dialog on double click, but it has the...
3
by: Soul | last post by:
Hi, I am learning C# at the moment. I am trying to develop a simple program that will get data from a MS Access database into a dataSet. The result of dataSet should be something like: Year ...
6
by: Chris Marsh | last post by:
I have setup a treeview on my XP desktop and it displays data yet on the Windows 2003 Server it will not display the treeview. Does anyone have a clue on how to make this function on 2003 Server?...
0
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView...
14
by: Evan Kontos | last post by:
I am trying to implement a Treeview w/an XML file and I even copied and pasted examples from MSDN but can't get them to work. Any suggestions welcome. XML File <TREENODES> <TREENODE...
1
by: K Hayes | last post by:
Hi All, Newish VB.NET programmer seeking help! I have a TreeView with a node that I wish to drag and drop to a Textbox. In the Treeview_ItemDrag i have
6
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
6
by: Christof Nordiek | last post by:
Hi all, in my WinForm-Application i have a strange problem with the TreeView Control. As you can see in the samplecode below, i fill the TreeView by adding some nodes with sub nodes. (The...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.