This is probably embarrasingly simple, yet I can't seem to figure it out. I have a web.sitemap, and a treeview that binds to that. My client wants internal anchors for a couple of the pages but they don't seem to be working...Here is the relevant part of the web.sitemap:
Code:
<siteMapNode url="~/Services/Accounting/Default.aspx" title="Accounting">
<siteMapNode url="~/Services/Accounting/Default.aspx#general" title="General Accounting" />
<siteMapNode url="~/Services/Accounting/Default.aspx#cfo" title="CFO Services" />
<siteMapNode url="~/Services/Accounting/Default.aspx#special" title="Special Project Consulting" />
</siteMapNode>
At the bottom of the page, are three anchor tags that correspond to the links in the web.sitemap. Here is an example of one:
<a name="#general" />
At first I thought turning off MaintainScrollPositionOnBack would fix the problem. Here is my page directive at the top:
Code:
<%@ Page Language="VB" MaintainScrollPositionOnPostback="false" MasterPageFile="./accounting.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Outsourcing_Default" title="Veris > Outsourcing > Accounting & Financial Management" %>
So currently when I click on one of the internal links in the treeview, it does nothing. There is no post back, which is good. It does change the URL in the browsers URL bar, but it doesn't jump the viewport down to where that anchor tag resides.
Neil Timmerman
Programmer
Veris Consulting