Solved

Store web.sitemap in app_data folder

Posted on 2008-06-13
4
756 Views
Last Modified: 2012-06-27
I need to store a web.sitemap file in app_data folder, and not in the root application. Because the web.sitemap is generated automatically by xmlwriter class. I need to link a treeview control to a websitemap file in the app_data folder. How can i dot?
0
Comment
Question by:rflorencio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Assisted Solution

by:codeclay
codeclay earned 150 total points
ID: 21778672
0
 
LVL 37

Expert Comment

by:samtran0331
ID: 21778912
>>Because the web.sitemap is generated automatically by xmlwriter class. I need to link a treeview control

Where do you get the data for the xmlwriter? A DB?
You can bind the treeview to the DB data without the added step of generating the web.sitemap file.
Or you can bind it to any xml file...
0
 

Author Comment

by:rflorencio
ID: 21779659
I get data from a db. How can i bind the treeview directly from a db, to generate a menu in asp.net vb
0
 
LVL 37

Accepted Solution

by:
samtran0331 earned 350 total points
ID: 21779770
You basically loop through the sql and add nodes and childnodes to the tree.
Not sure of your table(s) structure...but:

http://www.15seconds.com/issue/030827.htm
(scroll down to the "Database Populating" section)


http://aspalliance.com/732 
(Based on one table but still providing a hierarchy)

http://www.codeguru.com/csharp/csharp/cs_controls/treeview/article.php/c11797__2/
(c#)

Those are the first 3 links from this Google search:
http://www.google.com/search?q=asp.net+treeview+database&rls=com.microsoft:en-us:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question