Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:43:35+00:00 2026-05-22T18:43:35+00:00

I have this configuration in my application. ~/sitemap.aspx ~/Web.sitemap ~/mobile/sitemap.aspx ~/mobile/Web.sitemap mobile folder is

  • 0

I have this configuration in my application.

~/sitemap.aspx
~/Web.sitemap
~/mobile/sitemap.aspx
~/mobile/Web.sitemap

“mobile” folder is not an application and I cannot convert it due to some reason. Thus no webconfig file is there.

What I want to do here is to use ~/mobile/Web.sitemap as the sitemap datasource for the treeview control in ~/mobile/sitemap.aspx.

When I place this code:

<asp:SiteMapDataSource runat="server" ID="MobileSiteMap" />
<asp:TreeView ID="trvSiteMap" runat="server" DataSourceID="MobileSiteMap" />

it loads ~/Web.sitemap instead of ~/mobile/Web.sitemap

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:43:36+00:00Added an answer on May 22, 2026 at 6:43 pm

    1: Add an entry to sitemap providers in your web.config that points to your mobile sitemap.

    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    <providers>
    <clear/>
    <add name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.siteMap"/>
    <add name="MyMobileSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="~/mobile/Web.sitemap"/>
    </providers>
    </siteMap>
    

    2: Set the SiteMapProvider property of your MobileSiteMap DataSource to this newly added sitemap.

    <asp:SiteMapDataSource runat="server" ID="MobileSiteMap"  SiteMapProvider="MyMobileSiteMapProvider" />
    <asp:TreeView ID="trvSiteMap" runat="server" DataSourceID="MobileSiteMap" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this configuration on my web application. 2 beans : 1° Bean -
I have this code to keep some configuration data XmlSerializer xmlSerializer = new XmlSerializer(typeof(Entities.Application));
In my DefaultRegistry I have this configuration: ForRequestedType<INHUnitOfWork>().CacheBy(InstanceScope.HttpContext) .TheDefault.Is.OfConcreteType<NHibernateUnitOfWork>(); At some point in the
So I have this code inside my lib/ folder: class GlobalConfig::SetHelper def self.yes_no_input(configuration) value
I have got this code for detection of mobile device. <?xml version=1.0 encoding=UTF-8?> <configuration>
Hi have this j2ee web application developed using spring framework. I have a problem
I have this configuration for my application. <application android:label=@string/app_name android:theme=@android:style/Theme.Holo.Light> <activity android:name=.MainActivity android:label=@string/app_name> I
I have this in Nginx configuration files gzip_types text/plain text/html text/css application/json application/x-javascript text/xml
I have a web application, in which a web service resides in a folder.
I have this web application that has grown to an unmanageable mess. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.