Solved

Store web.sitemap in app_data folder

Posted on 2008-06-13
4
755 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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