Can Sitemap.CurrentNode use non default sitemap provider?

Discussion in 'ASP .Net' started by AmitKu, Sep 27, 2006.

  1. AmitKu

    AmitKu Guest

    Here is my situation. I have two sitemaps registered, A and B, where A
    is used by my default provider.

    When I do Sitemap.CurrentNode it operates w/ respect to the default
    provider. However, I want to do some fun programmatic stuff with
    SiteMap.CurrentNode, with regards to sitemap B on a certain page.

    How can I specify that when I say SiteMap.CurrentNode I want it to talk
    to me with respect to my non default sitemap provider?

    Thanks in advance,
    Amit
     
    AmitKu, Sep 27, 2006
    #1
    1. Advertising

  2. If you inherit from SiteMapDataSource and have overriden the methods
    properly, you have all you need to properly display the nodes. Goikn
    forward, you will ahve more options:

    http://msdn2.microsoft.com/en-us/library/ms432695.aspx

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    http://gregorybeamer.spaces.live.com

    *************************************************
    Think outside of the box!
    *************************************************
    "AmitKu" <> wrote in message
    news:...
    > Here is my situation. I have two sitemaps registered, A and B, where A
    > is used by my default provider.
    >
    > When I do Sitemap.CurrentNode it operates w/ respect to the default
    > provider. However, I want to do some fun programmatic stuff with
    > SiteMap.CurrentNode, with regards to sitemap B on a certain page.
    >
    > How can I specify that when I say SiteMap.CurrentNode I want it to talk
    > to me with respect to my non default sitemap provider?
    >
    > Thanks in advance,
    > Amit
    >
     
    Cowboy \(Gregory A. Beamer\), Sep 27, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ashish

    Custom siteMapProvider CurrentNode

    ashish, Jul 31, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    613
    ashish
    Jul 31, 2006
  2. Mark B

    SiteMap.Provider.CurrentNode.Title

    Mark B, Sep 21, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    514
    Mark B
    Sep 21, 2008
  3. Andy B.
    Replies:
    0
    Views:
    296
    Andy B.
    Apr 28, 2010
  4. Learner
    Replies:
    5
    Views:
    292
    Dominick Baier [DevelopMentor]
    May 7, 2006
  5. student4life

    where is the currentNode in hyperlink?

    student4life, Aug 2, 2009, in forum: Javascript
    Replies:
    2
    Views:
    104
    Thomas 'PointedEars' Lahn
    Aug 3, 2009
Loading...

Share This Page