Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 758
  • Last Modified:

Store web.sitemap in app_data folder

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
rflorencio
Asked:
rflorencio
  • 2
2 Solutions
 
codeclayCommented:
0
 
samtran0331Commented:
>>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
 
rflorencioAuthor Commented:
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
 
samtran0331Commented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now