Solved

Store web.sitemap in app_data folder

Posted on 2008-06-13
4
749 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
  • 2
4 Comments
 
LVL 9

Assisted Solution

by:codeclay
codeclay earned 150 total points
Comment Utility
0
 
LVL 37

Expert Comment

by:samtran0331
Comment Utility
>>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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now