CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 6/15/2006 10:49:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 65 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"pafo" <>
NewsGroup User
Populate a treeview with a xml file6/15/2006 10:49:39 PM

0

Hi,
Im trying to populate my treeview control onmy webpage with the information
that is stored in a xml file, but i cant seem to find any good references
about it. The xml file looks like this.

<root>
    <page id="1" name="test1" src="test.htm" />
    <page id="2" name="test2" src="test2.htm">
        <page id="4" name="test2.1" src="test3.htm">
            <page id="9" name="test2.1.1" src="test5.htm" />
        </page>
        <page id="13" name="test2.2" src="test.htm" />
        <page id="11" name="test2.3" src="test.htm">
            <page id="51" name="test2.4.1" src="test.htm">
                <page id="31" name="test2.4.1.1" src="test.htm">
                    <page id="661" name="test2.4.1.1.1" src="test.htm" />
                </page>
                <page id="71" name="test2.4.1.2" src="test.htm" />
                <page id="991" name="test2.4.1.3" src="test.htm" />
            </page>
        </page>
        <page id="3" name="test2.5" src="test.htm" />
    </page>
    <page id="1" name="test3" src="test.htm" />
</root>

The pages can just continue on and on. The result i want in my treeview
control is:

root
-test2
    -test2.1
        -test2.1.1
    -test2.2
    -test2.3
        -test2.4.1
            -test2.4.1.1
                -test2.4.1.1.1
            -test2.4.1.2
            -test2.4.1.3
    -test2.5
 -test3

Also i am looking to insert a New page... after every node that is closing
like this:

root
-test2
    -test2.1
        -test2.1.1
        New page...
    -test2.2
    -test2.3
        -test2.4.1
            -test2.4.1.1
                -test2.4.1.1.1
                New page...
            -test2.4.1.2
            -test2.4.1.3
            New page...
    -test2.5
    New page...
 -test3
 New page...

So when the user press the new page it must send the position in the xml
file that the new page is to be added to, so the program can insert a new
page at that position and save the xml file.

Any good code examples of how to populate a treeview using a xml file?

-Patrick

"haidar_bilal"
NewsGroup User
Re: Populate a treeview with a xml file6/18/2006 8:01:35 PM

0

Have a look at:

How To Populate a TreeView Control with XML Data in Visual Basic .NET

How do I populate a Treeview control from an XML file in C#

 

Hope this helps,

Regards


Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













change master page on the fly?

site navigation

disabled controls in theme

need to make bottom level of tree view control not clickable

masterpage split table tags - compile error!

master page error message

code for multiple sitemap providers

new sitemap providers in wss3

how to create database driven menu and submenu , sql database

menu parent should select when child is selected.

timer on controls in master page won't update on member pages

can a masterpage be a popup?

problem with master pages and buttons in inheritance pages

how to overwrite stylesheettheme on webservices pages???

scrolling content

calling java script function from master page

dynamically writing html in the content placeholder

treeview and securitytrimmingenabled

are login controls ok in masterpages?

theming parsed child controls

treeview: how do i display only a part of the site?

accessing web.sitemap in asp.net code behind. is it possible?

broken links when using masterpage

about treeview control in asp.net 2.0

style works great when i don't use masterpage

dynamically expand treeview

events sequence in nested master pages

problem with treeview control inside tabs structure and inside multiview control

masterpages? + postback inside asp:repeater = weird behaviour

treeview control with dhtml and javascript

external links in web.sitemap

i need to dispose/remove/clear sqlsitemapprovider and recreate it

master page with absoulte postioning ???

subdomains and dynamic master pages

displaying menu on left of page, external website on right

menu control (redirect to new window)

masterpage / content holder / problem

skin for programmatically added controls

menu control problem

partial page refresh of content in a master page. possible?

treeview populateondemand very slow

localizing sitemaps

creating theme file on runtime as per the option chosen by user

navigation in master page - is it a good idea?

menuitemclick event not being raised

enter key postback in asp.net 2.0

back button

trouble with xmlsitemapprovider

hierarchical navigation?

programatically changing <meta> information within a master page from a content page

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT