Solved

Store web.sitemap in app_data folder

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET 1 24
VB.Net - Get ColumnNames of SQL Table 4 13
Help with adding DLL file in Windows project 20 32
Complex SQL statement in VB.NET 7 16
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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