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: 1/19/2006 10:18:38 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Burak33
Asp.Net User
Newbie question -- Values not showing in treeview style1/19/2006 10:18:38 PM

0/0

Hello,

I have this treeview on my html page

<iewc:treeview id="tree1" style="Z-INDEX: 101; LEFT: 48px; POSITION: absolute; TOP: 80px" runat="server"></iewc:treeview></form>

and here's my code behind code.  The data values are coming back fne but they are arranged horizontally netx to each other, and there is no hierarchy. Why is this?

Thanks,

Burak

' connect to the database

Dim strCnn, sql, id, name As String

strCnn = ConfigurationSettings.AppSettings("ConnectionString")

Dim cnn As New SqlConnection(strCnn)

Dim dsGroup As New DataSet

Dim daGroup As New SqlDataAdapter("SELECT distinct TableGrp FROM Audit_Tables", cnn)

daGroup.Fill(dsGroup, "Groups")

 

Dim nodeGroup, nodeTable As TreeNode

Dim rowGroup As DataRow

Dim group As String

 

For Each rowGroup In dsGroup.Tables("Groups").Rows

group = rowGroup("TableGrp")

nodeGroup = New TreeNode

nodeGroup.ID = group

nodeGroup.Text = group

'nodeGroup.ID = rowSupp("SupplierID")

tree1.Nodes.Add(nodeGroup)

'' open connection

cnn.Open()

' get the audit table names to work with

sql = " select id, TableName from Audit_Tables where TableGrp = '" & group & "'"

' prepare the stored procedure that returns the records fitting the search criteria

Dim cmd As New SqlCommand(sql, cnn)

cmd.CommandType = CommandType.Text

' execute command

Dim reader As SqlDataReader

reader = cmd.ExecuteReader

' open reader

While reader.Read()

id = reader.Item("id")

name = reader.Item("TableName")

nodeTable = New TreeNode

nodeTable.ID = name

nodeTable.Text = name

nodeTable.NavigateUrl = "testpage2.aspx?id=" & id

nodeGroup.Nodes.Add(nodeTable)

End While

' close reader

reader.Close()

' close connection

cnn.Close()

Next

'clean up

dsGroup.Dispose()

daGroup.Dispose()

cnn.Close()

cnn.Dispose()

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Newbie question -- Values not showing in treeview style - ASP.NET ... Newbie question -- Values not showing in treeview style. Last post 01-19-2006 5: 18 PM by Burak33. 0 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Treeview Node images not showing in Windows XP - .NET Forum Treeview Node images not showing in Windows XP. Question posted by: SvenV ( Newbie) on October 8th, 2008 08:12 AM. Hello, We created a .net 1.1 application. ...
ng.asp-net-forum.internet_explorer_web_controls/5 - Fix error ... Newbie question -- Values not showing in treeview style, 0, 2, 29 days ago. I Need file: "Microsoft.Web.UI.WebControls.Dll", 0, 1, 29 days ago ...
CodeProject: Easy DHTML treeview. Free source code and programming ... Apologies for this newbie question, but how can I make Expand All/Collapse All .... I do NOT code the
in the body of my html; ...
Delphi newbie question. - dBforums Delphi newbie question. Delphi, C etc. ... I am currently studying dynamic popupmenu for TreeView objects. However, I am having problem in replicating ...
[Gtk-sharp-list] Problems with TreeView The rows in the TreeView are editable and should >* take the new value, .... to ask newbie >questions :-/ > >I hope this big post is somehow easy to read. ...
How to add a user control inside a treeview control as a node we can not extend treenode class because if I do this then I can not add Combobox and all to .... Drow combobox-like control list area ove • Newbie Question ...
SSDN - Newbie question on XSLT: function call - Feb 7, 2007 ... XSLT totaling numeric values (3) ... This a really newbie question, sorry :-) . ... The Saxon XSLT engine does not generate this error. ...
Change Treeview node font-style programmatically - DevX.com Forums I'm a newbie C# developer (2005) and I've created a ... My question is, how do I change the font style of this particular node to be bold? ...
C# - Serializing Values from TreeView COntrol to an Xml FIle - Dev ... The question is that, how can I save the information from the treeview control back to another file or sync it back to the source file? ...




Search This Site:










architecture for personal website starter kit ?

login two user by same username and password

activating/deactivating a user

compiling dll in vwd?

2.0.1 usersonline.zip bug in getonlineusers

passing lots of data between webpages

unable to find control id 'textbox1' referenced by the 'controltovalidate' property of 'requiredfieldvalidator1'.

how to show html pages inside a content placeholder

build action properties

check the great link about .net security

configuring iis for vwd 2005 ee beta?

how do i make a module that will update across all portals

positioning of controls

authentication mode =none

making a runtime for asp.net 2.0 websites??

<enter> not working on login control

can i use a different database for membership than role or profile?

developing aspx pages against dnn 3.0.13 core problems

caching

upgrade from 3.0.13 - 3.1.1 deletes portal

3.0.8 - nant - build failed - solution is - use latest nant

css style not being applied

another survey module issue

hosting asp.net

problem with download!

accessing controls in a wizard header?

#region statements

vs 2005 sql server 2005 express did not install

when deploying dotnetnuke on my server i saw the following error, anyone could help me....?

unauthorizedaccessexception: :asp.net

 
All Times Are GMT