.net - Asp.net More Than One Sitemap?

Apr 7, 2011

I am having an issue with the sitemap control, I have added the hierarchical levels within the web.sitemap file and added the sitemap control to the various masterpages. I have however two homepages which can be viewed depending on the user of the system.

Is there any way to define two sitemap structures within this web.sitemap file or can I just create another sitemap file?

View 1 Replies


ADVERTISEMENT

C# - How To Read A Sitemap

Feb 21, 2012

I have been trying to open the following XML file in VB.NET using the Linq library.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://wegotflash.com/sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9

[code]....

The code that I'm using works with normal XML files, but whenever I add the xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" attribute to the root node, nothing is getting returned by the application. Here is the VB.NET code that is reading the XML file:

Dim XMLFile As XDocument = XDocument.Load(TextBox1.Text)
For Each url As XElement In XMLFile.Descendants("url")

[code]....

View 1 Replies

Asp.net SiteMap Menu Using CSS And JQuery?

Mar 5, 2011

I am using asp.net sitemap with the in-built asp.net menu but this is very 'dull'. I want to apply CSS and jQuery to give it a better visual look and feel. I have read various articles based on [URL]

Is there any examples or tutorials similar to this which are FREE?

View 2 Replies

Mvc - Why Is Sitemap.CurrentNode Null

Nov 9, 2009

System.NullReferenceException: Object reference not set to an instance of an object. Making the Sitemap.CurrentNode work in my code is oddly a problem. I haven't figured out how to list code on STOF yet. so here is the code that will easily be displayed. [Code]

View 2 Replies

Dynamically Rename A Node In A ASP.NET Sitemap?

Jan 30, 2011

On our site, we have our sitemap in this order:

SiteName > SelectedProject > Path > To > Page

Where SiteName takes you to the very root page which is primarily to select a project and SelectedProject takes you to the project's homepage.Currently, in the Web.sitemap file, SelectedProject has a static name. How can I rename it to the name of the selected project, which can be obtained from Session("PRJ")? I'd strongly prefer any code behind to be given in VB.NET, not C#.

View 1 Replies

Efficiently Loading Sitemap From Database?

Jan 13, 2010

i have a custom SiteMapProvider which I populate from a database. I also have a custom SiteMapNode which has to be constructed with a custom Page argument.[code]Should I return false in AuthorizeCore() to have everything work according to default authorization protocols? (What are these?) Or should I throw my exception.SiteMap.CurrentNode is Null / Nothing (in AuthorizeCore()) if the page which is requested is not accessible to the user (obviously). How should I change my implementation? I want to keep the functionality that the Page objects are only loaded once, so I need to store them somewhere.

View 1 Replies

VS 2005 Sitemap Using Recursive Programming?

Aug 20, 2009

I have a dynamic website that shows articles. Any article can have sub articles and sub articles can have sub articles etc. I have wrote a routine that recursively goes through the data creating a new sitemap xml file. My problem is this:-

Art1
SubArt1a
SubArt1aa

[code].....

View 7 Replies

Asp.net Mvc - Handle Application Security Using ActionFilterAttribute And/or SiteMap Authorization?

Jan 12, 2010

i created the following ActionFilterAttribute to check if a user is granted access to a page. I also created two custom Exceptions to handle different scenarios: NotLoggedInException and InsufficientPrivilegeException.

[Code]...

Where do I catch the exceptions to for instance redirect users if not authorized?Should I perhaps use the SiteMap authorization somewhere else instead of using the ActionFilterAttribute and throwing Exceptions..?

note: as you can see I'm using a custom class for BLL.Page. This is a ORM page which has Role based security stored in the database. SiteMap is also populated based on this data

View 1 Replies

How To Make Sitemap Based Menu With Only Top Level Elements

Jun 23, 2009

I'm trying to make a menu based off of an asp.net sitemap. How do you nest the sitemap nodes so that they all appear on the same level. Here is what I have:
<siteMap xmlns="[URL]" >
<siteMapNode>
<siteMapNode url="~/Default.aspx" title="Home" description="link to Home" />
<siteMapNode url="~/about.aspx" title="About" description="abot" />
</siteMapNode></siteMap>

Here is what the code for the Menu control looks like:
<asp:Menu ID="Menu1" runat="server" BackColor="#E3EAEB"
DataSourceID="SiteMapDataSource1"
</asp:Menu>
They both appear as 2nd tier elements underneath an arrow.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved