[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Using TreeView with a Site Map

Posted on 2008-06-09
3
Medium Priority
?
677 Views
Last Modified: 2008-06-18
I have a simple Web.sitemap file that Im trying to build a TreeView site map around:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="Home">
         <siteMapNode url="~/CreateLogin.aspx"  title="Create an Account" />
         <siteMapNode url="~/Login.aspx"  title="Login" />
    </siteMapNode>
</siteMap>

Ive dragged a SiteMapDataSource control to the page and then a TreeVeiw control.   But as soon as I link the TreeView control to the SiteMapDataSource the TreeView control shows:

"Error parsing control: A relative URI cannot be created because the uriString parameter represents an absolute URI."

I dont see any absolute URIs in what Ive written so this doesnt make sense to me. Does anyone know what might be going on?

Thanks
0
Comment
Question by:steva
[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
3 Comments
 
LVL 11

Expert Comment

by:G0ggy
ID: 21751943
Do you have a full web URL somewhere in your site map?
0
 

Author Comment

by:steva
ID: 21752688
I'm not surewhat you mean.  Isn't the "site map" just web.sitemap?  As the Web.sitemap file above shows,  the three nodes there are all releative.  In any case, I checked all the pages in the project and none contain a "www" or an "http:" anywhere in the code, except for things like "siteMap xmlns="http..."  or

 !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">.

So I think the answer is no, I don't have a full web URL anywhere in my site map.
0
 

Accepted Solution

by:
steva earned 0 total points
ID: 21753484
Ok, now it's working!  Not sure what happened.  I deleted all the site map controls and the web.sitemap file  and re-entered everything.  Maybe Visual Web Developer had gotten into some state that confused it.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

656 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