Web Forms :: Sitemap - Same URL For More Than One Sitemapnode?

Jul 28, 2010

i created a web.sitemap file where I have listed the following:

[Code]....

I need to set some values before the menu item navigates to the page. I'd like to use the same aspx page for more than one menu item and I'd like to avoid the use of querystrings in my code. However, I realize that it's not possible to set the same url in the web.sitemap file. If I don't specify a url, the menu item created is not click-able.

View 6 Replies


Similar Messages:

Web Forms :: Parser Error Message - XML Sitemap Config File Web.sitemap Could Not Be Loaded

May 11, 2010

We are getting this error message when we try to click the link in the menu to go to Report Server:

Source Error:
Line 31: <siteMapNode title="Reports" description="Reports">
Line 32:
Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports"
description="Click here to view the reports" />
Line 34: </siteMapNode>
Line 35:

I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.

View 5 Replies

Sitemap Randomly Breaks Over Time / Could Not Find The Sitemap Node With URL '~/Default.aspx'

Aug 2, 2010

I've been having some production runtime errors that I don't fully understand. This has happened to us on a couple different ASP.NET 4.0 Web Sites (shudders - yes, I know - we're porting it to MVC but that's taking some time).

First of all, we have never been able to reproduce this issue in development/QA environments. Secondly, upon deployment, the issue seems to be non-existent. Sometimes the issue manifests within a day or two of deployment and other times the deployment will be live for a month without it manifesting at all. However, once it manifests, then ANY page viewed under the web site causes the error. Lastly, this problem seemed to only come up once we migrated to .NET 4.0. We started at 2.0, a year ago upped to 3.5, and recently upped to 4.0 with this solution and most child projects.

The error:

Could not find the sitemap node with URL '~/Default.aspx'.

A simplified version of our sitemap (with some names changed and uninteresting nodes removed) is as follows:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode roles="*" title="EG">
<siteMapNode url="~/../SM/Default.aspx" title="Welcome" description="" roles="*" />
<siteMapNode url="~/../SD/Default.aspx" title="SD" description="" roles="*" />
<siteMapNode url="~/../SMD/Default.aspx" title="SMD" description="" roles="*" />

[code]...

I have confirmed in all of the SiteMaps that there is a node with url="~/Default.aspx" with roles="*" (which includes public/anonymous access), so I am very confused as to why this problem occurs.

SiteMap does not have a node for Default.aspx. All of them do. SiteMap's Default.aspx node is not accessible for security reasons to the current user/role. They're all accessible to anonymous users and this problem even exists for super admin users. Passed-in URL contains querystrings (Default.aspx?abcd). I don't know if this is a problem (I sure would hope not) but once the problem manifests itself, I can handwrite the URL with no querystrings and the problem still exists.

SiteMap changes. It doesn't Service's permissions to the sitemap file. The sitemap works perfectly fine after a deployment, so unless permissions are changed in a way that IISRESET fixes, then this is not an issue. The worker process becomes globally corrupt. I don't think so. We have ~12 web sites all in the same app pool and the problem always stays confined within a single web site. Also, we have yet to have this happen to more than a single web site at a time although it has manifested itself in 4 different ones so far.

View 1 Replies

SiteMap Change SiteMapProvider / Create Multiple Web.sitemap Files?

Jan 25, 2011

I've got a custom menu navigation built from a web.sitemap file, the first line of this would be something like:

SiteMapNodeCollection topLevelNodes = SiteMap.RootNode.ChildNodes;

However, now I want to be able to create multiple web.sitemap files, and then programmatically determine which web.sitemap file to use, but I can't seem to find out how to do this. I'm assuming I could either create one custom SiteMapProvider that can perform the logic to determine which web.sitemap file to load, or I have multiple providers, each one with the SiteMapFile property set to a specific *.sitemap file, and then switch providers programmatically before I access SiteMap.RootNode.

View 2 Replies

Web Forms :: Is It Possible To Customize A SiteMapNode

Jan 6, 2011

Is it possible to customize a siteMapNode? Like adding space between the menu selections and/or adding icons?

View 1 Replies

Web Forms :: SiteMapNode And An Http Url?

Jan 31, 2010

Does a sitemapnode need to point to a page of the current site? I'm trying to add a node that would take a user to a page on another site, for example:

<siteMapNode title="Help" url="http://www.help.com/help/help.aspx?" image="~/Image/Help.png">
</siteMapNode>

This node does not show-up in my tree view of links, but all the other nodes show. This is the only node that has a url that points to a page outside the current site.

View 1 Replies

Web Forms :: Assign Dynamic URL To SiteMapNode?

Sep 13, 2010

I have Sitemap with Node,

<siteMapNode url="Forms/Test.aspx" title="Test" description="Test" />

I want to assign url to the siteMapNode dynamically depending upon condition eg.

if(id == 1)
<siteMapNode url="Forms/Test1.aspx" title="Test" description="Test" />
if(id == 2)
<siteMapNode url="Forms/Test2.aspx" title="Test" description="Test" />

View 2 Replies

Web Forms :: Add SiteMapNode In Sitmap On Runtime?

Mar 9, 2011

how can i add siteMapNode in sitmap on runtime

View 1 Replies

Web Forms :: Change A SiteMapNode Dynamically?

Mar 19, 2010

I currently have a working menu driven by a sitemap.I would like to change one of the sitemapnode when a user hits one of my pages. How do i achieve this? I just need to change of the url for one of the nodes in the sitemap.

View 1 Replies

Web Forms :: Adding A Sitemapnode To Screen?

Feb 14, 2011

I need to add a sitemapnode to my screen when the user opens it without adding an actual sitemapnode to the sitemap file. This node needs to include url, title, and description. Does anyone have code to show how to do this in C#?

View 2 Replies

Web Forms :: Programmatically Reference .sitemap File That Isn't The Root Web.sitemap File?

Nov 4, 2010

How would I programatically reference a .sitemap file that is not the root web.sitemap file? I have a file called research.sitemap in a folder a level under root. I want to refernce this file in my code behind like his: SiteMapNode m1 = SiteMap.RootNode (but since this isnt web.sitemap in the root, I dont know how to get access to it).

View 1 Replies

Web Forms :: Sitemap Node - Seond Line Of Sitemap Node Won't Indent?

Mar 25, 2010

I have a second level node that goes onto two lines. The first line indents 15px as is set by the class for node level 2. The seond line kicks back to the same level as 1st level nodes. Here's what I mean:

Parent Node

Second node

line 2 of second node

I want it to be like this:

Parent Node

Second Node

line 2 of second node

View 4 Replies

Web Forms :: Make SiteMapNode Invisible In TreeView

Dec 7, 2010

I have a TreeView, breadcrumb, and Web.sitemap.

I was given some code a while ago which hid certain nodes from the TreeView but allowed them to appear in the breadcrumb.

Here it is:

[Code]....

I later needed do the same thing but, by now, was using C# instead of VB.

I've tried to translate the VB into C# but the code doesn't work. It doesn't report any design time or run time errors; it just doesn't work (the nodes ARE visible in the TreeView.

Here's the C#:

[Code]....

and I've added this:

[Code]....

View 6 Replies

Web Forms :: Code Removing A Actual Sitemapnode

Feb 14, 2011

I am developing an ASP.NET web page with C#. I have a sitemap document but I want to hide certain nodes based on the user's credentials. However, I am having problems with my code removing the actual node. Visual Studio runs the program with no errors. However, the node is still there. Below is the code I have developed for this. The node changes text to "it worked" as I hope written. However, it will not remove itself. I can get the item to be disabled, change enablement, but I need to hide it completely from the viewers view - not the document.

[Code]....

View 4 Replies

Web Forms :: ASPX SiteMapNode - Want To Add Another Root (like Home Tab)?

Jul 29, 2010

I have a web.sitemap:

When I run it. It displays Home>Basic Reporting... (All is under Home tab)

[Code]....

I want to add another root (like Home tab) So the user can select another tab withough going through the Home tab,When I add this code (above code ie.2): It doesnt work, compilation error:How do I make it work.

[Code]....

View 1 Replies

Web Forms :: Changing Title O Sitemapnode At Runtime From Code Behind C#

Aug 15, 2010

I have a site map on my project and I have section which get values from sql database and it changes according to querystring Id value. In my sitemap the title of the page is everytime same. but I want tpo change it at runtime. I am using multiple sitemaps and My sitemap is not the default one. its name is rootSitemap. I tried some code which I got from msdn but it seems doesn't work for me;

[Code]....

Here is my sitemappath code which is situated in my master page;

<asp:SiteMapPath SiteMapProvider="rootSitemap" ID="SiteMapPath1" runat="server"></asp:SiteMapPath>

View 23 Replies

Web Forms :: How To Hide Manage SiteMapNode In Menu Control

Feb 5, 2011

How can i have a menu control that Manage SiteMapNode from the menu to hide and Just when admin logged to see it.

[Code]....

View 1 Replies

Web Forms :: Storing SiteMapNode Object In Session Not Working?

Jan 21, 2010

I am using Session state in my ASP.NET application. The development is done using InProc session state as the option, but now the application is deployed on a Web Farm(Cluster) environment. As a result, InProc session state is not working.

I have changed the session state mode to SQL server so the session state will work in Web Farm environment. But now i am getting a different error because of some of the objects which i have already used with Session.

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

I understand that every object that is stored in Session needs to be serialized. But there are some objects which are not serializble in DOTNET.

Unfortunately i am using one of them, SiteMapNode. I am storing this object in session to re-create the breadcrumb based on the navigation the user has performed. I have to do this because there are mulitiple paths leading to single page in my application.

I have tried to do serialization of this object using XML serializer object, but its throwing an exception:

"System.Web.SiteMapNode cannot be serialized because it does not have a parameterless constructor."

I can't change the code of storing the SiteMapNode in session as it is very complex and written by someone else. I have to store this object in session or some other state form so that i can continue using the same code.

View 3 Replies

Web Forms :: Unable To Access Next And Previous Siblings Of A Sitemapnode?

Nov 11, 2010

I have an application where I am binding sitemap to a repeater control for showing horizontal tabs and this shows up fine. Now I have to append some dynamic query string parameters (say id and year) to all the sitemap nodes of the sitemap so that when I bind it to a repeater all the tabs will have these query string parameters.here is my sample code

[Code]....

this is my extendedsitemap within app_code class

[Code]....

And when the sitemap is bound to my repeater control the tabs have url like

[Code]....

Now when I try to click on next or previous buttons on any page to navigate, I am not able to access the nextsibling or previoussibling node.....both of them are null. can any one let me know what am I doing wrong here?

View 2 Replies

Web Forms :: SitemapNode - Get Current Query String For Mappath?

Sep 8, 2010

I am using multiple sitemaps in my project. they are all registred inside the web.config file.

I have a blog inside my project and I need something below;

Home > Blog > cahngeable_category_name_acordingto_my_value > changable_blog_post_name_according_to_my_value

I have tried the below code but it didn't work. it gives me an error.

[Code]....

View 3 Replies

Web Forms :: Adding Or Removing A SiteMapNode To A Menu Control At Runtime?

May 27, 2010

I need to have a siteMapeNode for a menu control to only show up during development.

The following node would be in the web.sitemap file.

[Code]....

I can either put this node in my web.sitemap file and remove it in release builds.

Or Add the node in debug builds.

Probably done in PreInit or Page_load events.

View 2 Replies

Web Forms :: Open Application In Seperate Browser When Click On SiteMapNode?

Sep 27, 2010

I want to open application in seperate browser when click on SiteMapNode.

View 4 Replies

C# - How To Get The Name Of Sitemap File From Sitemap Provider

Oct 6, 2010

I am creating a CacheDependency on the file that my SiteMap provider uses. I would like to get the name of the file from my sitemap provider instead of hard coding it. Is there a way?

Edit

Duh, I forgot to mention: XmlSiteMapProvider that comes with ASP.NET

Edit 2

Reflector shows a private member field called _filename that isn't exposed in any way as far as I can tell.

View 1 Replies

Security :: Disable Sitemapnode From A Particular User?

Jul 24, 2010

how to disable sitemap link for a perticular user?

i have 2 columns one is UserStatus which is A/P(Approve / Pending)

2nd is POC =Y/N..

i want to check userstatus =A and POC = Y

and the link name (eg..abcd). at runtime only those users use this link whose status is'A' and POC is' Y'..(enabled
link to ths users)I want to disable this link to other users..

View 4 Replies

Modify The Title Of A SiteMapNode From Codebehind File?

Jan 25, 2010

I have a site and Web.sitemap file added to the root folder of the site.

I want to create a new page that allows the user to change the title and description of the SiteMapNodes in the Web.sitemap file. I have completed it partially, in the sense, I am able to iterate through the nodes in the sitemap file using the following code.

[Code]....

View 1 Replies







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