locked
[C #] [WebForm] How to solve about the same URL, different content, different Web.SiteMap path ? RRS feed

  • Question

  • [C #] [WebForm] How to solve about the same URL, different content, different Web.SiteMap path ?

    A Category => Home> A Category
       A1 => Home> A Category> A1
       A2 => Home> A Category> A2
         A21 => Home> A Category> A2> A21
         A22 => Home> A Category> A2> A22
    B Category => Home> B Category
       B1 => Home> B Category> B1
       B2 => Home> A Category> A2 => Problems
         B21
         B22
    ==============

    Each menuitem on the menu is a hyperlink, which may be the same or different

    A2 and B2 are the same ~ / WebPage1.aspx
    But Web.SiteMap does not allow the same URL,
    So I do not set B2, the result B2 shows the SiteMap path of A2.
    How to let B2, B21, B22 show their own correct SiteMap ?

    I have tested this below in SiteMap is the different URL
    WebPage1.aspx
    WebPage1.aspx? A =
    WebPage1.aspx? A = 1
    WebPage1.aspx? A = 1 & B = 2
    WebPage1.aspx? B = 1 & A = 2

    Is there any other better way?

    *****
    If the parameters of the type, quantity, order is not fixed, the above method does not apply,

    what is better way?


    ******************** 孔子說:問有三種 不懂則問; 雖懂而有疑惑則問; 雖懂而想更了解則問; ********************

    • Moved by CoolDadTx Wednesday, March 8, 2017 3:55 PM ASP.NET related
    Thursday, March 2, 2017 3:32 AM

All replies

  • Hi luicst,

    I've researched  microsoft advises to make some corrections to the urls like adding a # or giving parameters:

    ~/pages/districts/areas/acova.aspx
    ~/pages/districts/areas/acova.aspx#
    ~/pages/districts/areas/acova.aspx?id=1

    All are different urls, but the same page.

    Best regards,

    Kristin


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 2, 2017 8:03 AM
  • Please post questions related to ASP.NET in the ASP.NET forums.
    Thursday, March 2, 2017 8:25 PM
  • You should post to the ASP.NET forum.

    http://forums.asp.net/

    Thursday, March 2, 2017 9:44 PM
  • You should post to the ASP.NET forum.

    http://forums.asp.net/

    Thank you.

    ******************** 孔子說:問有三種 不懂則問; 雖懂而有疑惑則問; 雖懂而想更了解則問; ********************

    Monday, March 6, 2017 2:34 AM
  • Hi luicst,

    I've researched  microsoft advises to make some corrections to the urls like adding a # or giving parameters:

    ~/pages/districts/areas/acova.aspx
    ~/pages/districts/areas/acova.aspx#
    ~/pages/districts/areas/acova.aspx?id=1

    All are different urls, but the same page.

    Best regards,

    Kristin


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thank you.
    Just every hyperlink must be added, but also to the next layer (or subdirectory) of the page, a little trouble.


    ******************** 孔子說:問有三種 不懂則問; 雖懂而有疑惑則問; 雖懂而想更了解則問; ********************

    Monday, March 6, 2017 2:35 AM