Web Forms :: Page Url In Web.sitemap

Feb 16, 2010

Im using url rewriting and i want to use web.sitemap, so how can give the url of page since it virtual?

View 2 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

Web Forms :: Use Page.ResolveUrl In Web.sitemap?

Feb 14, 2010

I want to use .sitemap file,but how to use Page.ResolveUrl in it. Because i have used UrlRewriting so it url are virtual.tell me if another way of doing this.

View 1 Replies

Web Forms :: Set Page Title From Web.sitemap?

Feb 13, 2011

I have a some code that I have used to set the page title from the sitemap on my root.master. I also use very similar code to add a titlebar from sitemap on my nested.master. Im just getting starting to try to build classes and was wondering if there is a way to make this into a class and then referance it in each master/nested master?

Also it errors out if the is no Title attribute in the node, is there anyway to test if it exists first?

[Code]....

[Code]....

View 2 Replies

Web Forms :: Web.sitemap - Page Not Open In New Window

Mar 15, 2010

I have a web.site map that works fine with the exception of opening a page in a new window. The page opens, just not in a new window and I can't figure out what I am doing wrong.

<siteMapNode
url="Part3.aspx"
title="Part
III Practice Component"
description=""
<siteMapNode
url="InterviewLog.pdf"
title="Print
Version Guide and Log"
description=""
roles=""
target="_blank"
<siteMapNode
url="EnrollmentForm.pdf"
title="Enrollment
Form"
description=""
roles=""
target="_blank"
siteMapNode>

View 3 Replies

Web Forms :: SiteMap With Multiple Paths To Same Page?

Jul 20, 2010

I have a sitemap, and i'm using nested repeaters to display the parent and child nodes for my breadcrumbs.I have 3 pages: Home, Hub, and Search.Each of these pages can navigate to each other. In other words:

Home> Hub
Home> Search
Home> Hub > Search
Home> Search > Hub
Home > Default

The most common path would be "Home > Hub" and Home > Search > HubHowever, I can't seem to figure out how to show this on my breadcrumbs, since you can't have multiple ULR's in the Sitemap. Right now, you can only go "Home > Hub". If you go from "Search" to "Hub...it should show "Home > Search > Hub" in the breadcrumbs.

View 5 Replies

Web Forms :: Update Page After Editing Sitemap?

Sep 6, 2010

code to allow authorised users to add categories to a shopping catalog:

Sub editXml()
If txtNewCat.Text.Count > 0 Then
Dim sMap As New XmlDocument
sMap.Load(Server.MapPath("App_Data/Web.sitemap"))

[Code]....

trvCats is the ID of the treeview that displays the sitemap contents. Problem is the the trvCats.DataBind() line isnt running when run the code. The new entry is added to the sitemap file, no problems but the code seems to exit after the sMap.Save line so the user must refresh the page to see the updated TreeView. If I set a breakpoint on the trvCats.DataBind() line then it does run but if I remove the breakpoint then it doesn't.

Also a smaller point is that the new node is automatically created with the xmlns attribute. Although this doesn't cause an error I would rather not have it if possible. Anyone got a suggestions how to get rid of it?

View 8 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 :: Hide A Link In The Sitemap - Yet Still Show The Breadcrumb On The Page?

Oct 1, 2010

We have a dynamic sitemap and all nodes in the sitemap display a breadcrumb. Is it possible to have the breadcrumb still showing, but make the link in the sitemap invisible or non-clickable? Reason for this is that... we dont want users to select some pages from the sitemap (becasue they need to conduct a search first to populate a datagrid) and clicking on the link will only take them to an empty page. I tried just removing the url, or having a blank title, but that didn't work.

View 14 Replies

Web Forms :: SiteMap & Master Page: Set Session Variables And Dynamic URL's

Jul 6, 2010

I have a web application that contains a MasterPage and a Web.sitemap file for the navigation. I am loading the navigation into an <asp:Repeater> control and I associating it with <asp:LinkButton>; something like this:

[Code]....

I have two issues:

Setting Session Variables: I'd like to set some session variables when any menu item is clicked.Dynamic Url: Once the Session variables are set, I'd like to set the url dynamically after the Session variable is set The thing is, I'd like to use the same aspx file for two different menu items, and I'd also like to set some session variables at the time of menu selection. I am aware that I cannot use the same url when I define the url in the web.sitemap file.

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

Forms Data Controls :: Using A Repeater To Build A Website's Site Map Page By Binding To The Web.sitemap File?

Jun 3, 2010

I've been using a repeater to build a website's site map page by binding to the web.sitemap file. For example, to display 2 levels of links:

[Code]....

So far, everything works well. However, in some cases, I do not want to display certain pages in the site map. I've added a custom attribute to each node (nodisplay= 'true').How can i check for this attibute, and avoid it from being displayed by in the repeater.

View 3 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

C# - Use Web.sitemap To Control Page Access

Apr 1, 2010

I was setting up permissions for pages in a ASP.NET website with <location> tags in web.config, something similar to this:

<location path="Users.aspx">
<system.web>
<authorization>
<allow roles="Administrator"/>
<deny users="*"/>
</authorization>
</system.web>
</location>

However, I also have a web.sitemap which basically contains the same information, i.e. which user roles can see/access which pages. A snippet from my web.sitemap:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="[URL]AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home">
... lots of nodes here ...
<siteMapNode url="users.aspx" roles="Administrator" title="users" description="Edit users" />
...
</siteMapNode>
</siteMap>

Is there some kind of nifty way of using web.sitemap only to configure access? The <location> tags are quite verbose, and I don't like having to duplicate this information.

View 3 Replies

Adding An Internal ASPX Page With Relative URL To CRM 4.0 Sitemap

Feb 8, 2011

I've added a subarea to my sitemap in CRM 4.0, and for absolute URLs it works as expected. However, for relative URLs it does not. The page in question is internal and is accessed through:

http://localhost/ISV/<orgName>/Account.aspx/ExternalDocumentList

However, I would prefer writing this in sitemap:

/ISV/<orgName>/Account.aspx/ExternalDocumentList

When this is expanded, CRM/IIS rewrites it to:

http://localhost/<orgName>/ISV/<orgName>/Account.aspx/ExternalDocumentList

For reference, here is the sitemap addition (which doesn't work):

<SubArea Id="custom_documentHistory" Url="/ISV/<orgName>/Account.aspx/ExternalDocumentList">
<Titles>
<Title LCID="1033" Title="Document History"/>
</Titles>
</SubArea>

How can I link to this page relatively?

View 1 Replies

Security :: SiteMap - Different Security Trimming For The Same Page?

Mar 3, 2011

I have a site map with a node and two inner nodes. The inner nodes have the same url but a different querystring parameter. I want the users with role "User" to see only the second of these links in their menu.

This is my siteMap:

[Code]....

This is the configuration of the web.config:

[Code]....

As a result, the users with role "User" can see only the second link (Search) which is fine, but they get an Access Denied when they navigate to it which is logic since they don't have access to that page, but it's not really fine for me.

View 2 Replies

Web Forms :: Call One From 2 Web.sitemap On Web App?

Nov 9, 2010

I have a website, on the root i have web.sitemap that works fine for the web users, i have an admin area that is in a sub folder, ths second we.sitemap is on this sub folder how can i call this one ?

View 3 Replies

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

Web Forms :: Can Use 1 Sitemap For Two Different Websites

Feb 24, 2011

I took over my company's website and I'm reordering the layout and colors. I can't change the structure of the websites. It's one website but it has two different parts. A static part sits on one server and the part the users login is on another server.

What I would like to know is if can use one sitemap for both so I don't have to maintain two. I also want to generate a site map dynamically and I can't do that with two different sitemaps.

View 1 Replies

Web Forms :: Use A Sitemap In Webpage?

Aug 21, 2010

how to use a sitemap in my web page

View 5 Replies

Web Forms :: How To Add Sitemap In Website

May 7, 2015

How to add sitemap in website using sp.net.......

View 1 Replies

Web Forms :: Web.sitemap - Add Extra Submenu

May 27, 2010

Whenever i add a exta submenu to:

<siteMapNode url="~/washroom/default.aspx" title="Washroom Supply" description="Washroom Supplies">
<siteMapNode url="~/washroom/example.aspx" title="Example" description="Example" />
</siteMapNode>

I get the error page.I managed to add one sub menu(example) but there is no way that I can add more. Everything looks ok but for some reason dosent work. That's the whole map:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns=[URL]
<siteMapNode url="/" title="Home" description="Home page">
<siteMapNode url="~/cleaning/default.aspx" title="Cleaning" description="Cleaning Services">
<siteMapNode url="~/cleaning/office.aspx" title="Office Cleaning" description="Office Cleaning" />
<siteMapNode url="~/cleaning/ceiling.aspx" title="Ceiling Cleaning" description="Ceiling Cleaning" />
<siteMapNode url="~/cleaning/awning.aspx" title="Awning and Canopies" description="Awning and Canopies" />
<siteMapNode url="~/cleaning/pubs.aspx" title="Pubs, Bars and Clubs" description="Pubs, Bars and Clubs" />
<siteMapNode url="~/cleaning/communal.aspx" title="Communal Areas" description="Communal Areas" />
<siteMapNode url="~/cleaning/carpet.aspx" title="Carpet and Upholstery" description="Carpet and Upholstery" />
<siteMapNode url="~/cleaning/window.aspx" title="Window Cleaning" description="Window Cleaning" />
<siteMapNode url="~/cleaning/pressure.aspx" title="Pressure Washing" description="Pressure Washing" />
</siteMapNode>
<siteMapNode url="~/distribution/default.aspx" title="Distribution" description="Distribution Services">
<siteMapNode url="~/distribution/price.aspx" title="Price Guide" description="Price Guide" />
<siteMapNode url="~/distribution/areas.aspx" title="Areas We Cover" description="Areas We Cover" />
<siteMapNode url="~/distribution/collection.aspx" title="Free Collection" description="Free Collection" />
</siteMapNode>
<siteMapNode url="~/office/default.aspx" title="Office Supply" description="Office Supplies" />
<siteMapNode url="~/washroom/default.aspx" title="Washroom Supply" description="Washroom Supplies">
<siteMapNode url="~/washroom/example.aspx" title="Example" description="Example" />
</siteMapNode>
</siteMapNode>
</siteMap>

View 7 Replies

Web Forms :: How To Use Menu Control Using Sitemap

Jul 26, 2010

i want to use menu control using sitemap , i have master ,transaction, report, i want to display my menu control

in horizontel way how to use menu control , iam using asp.net with csharp

View 2 Replies







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