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


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 :: 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

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

Web Forms :: WebMethod Call Won't Return Seems Blocked By Other Iframe Call?

Oct 8, 2010

XP Pro,aspnet 2, IIS, Oracle I have a primary webpage that displays a tab and some summary data. The tab uses an iframe and the summary data is loaded by an async WebMethod call back to C#. The iframe page takes a short while to load depending on how much data is in there (sometimes upto 20 seconds?). The WebMethod call, or at least the content of it, is very fast. BUT, the WebMethod call won't return until basically the iframe has finished loading.

I've verified through Fiddler that the browser is initiating both requests at basically the same time. It's initiating the iframe call first followed immediately by the WebMethod call within the same second. My understanding is that browsers are limited to only two calls at once.

If I set a breakpoint at the end of my WebMethod call (even commenting out ALL it's guts so it just returns an empty string), that breakpoint won't fire until the aspnet page serving up the iframe has finished. Using threads window, I see both calls at the server. I just don't understand why the server won't actually run the Webmethod call until the first call has finished. I've searched the code looking Monitor.Enter, lock, etc to make sure nobody has inserted any other type of blocking code and I can't find anything. I've basically emptied out the WebMethod call and it just returns a string, but no matter what I do, it just won't return as fast as it can. If I comment out the iframe, then the WebMethod call returns within 2 seconds. With the iframe, it "looks" like the the webmethod call won't return until the iframe has finished.

1) Does aspnet only process one request per aspnet session id? Is it FIFO? I figured the webserver would just process requests and return each request as fast as it can.

2) What else can I do to get that summary data to return faster (but not actually loading and putting the data into the very first primary page) ?

View 2 Replies

Forms Data Controls :: Call Modal Popup Extender When User Call Edit Link / Button In Gridview

May 18, 2010

I have a grid with edit link.

when user clicks onedit link , i want to show modal popup extender which displays text boxes for editing those data.

when user finishes editing the grid should again updated.

View 2 Replies

Web Forms :: Call Javascript In Codebehind (one Function But Twice Call)

Dec 13, 2010

i have a question about call javascript in codebehind. my page has two parts.one part for enter information about manager and another part for usualuser.each person has mellicode.that it has speicail code.i wrote it with javascript and call it with this code:

[Code]....

when i click in btnpazireshsabt i should check mellicode for manager.i call it :

[Code]....

i want to disable btnsabt when i click in

[Code]....

View 5 Replies

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

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 :: 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 :: 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

Web Forms :: How To Edit Value In Menu With Sitemap

Jan 2, 2011

I have a menu which datasource is a SiteMapDataSource wich works fine.

But now I have in the codebehind to make some of the values in the menu invisible.

My SiteMapDataSource look like this:

[Code]....

My menu look like this:

[Code]....

Now I want to in the codbehind to make the blog invisible - how to do this?

[Code]....

View 5 Replies

Web Forms :: How To Generate A Sitemap Xml File

Nov 9, 2010

How would I generate a sitemap xml file dynamically from vb.nert code?

View 1 Replies

Web Forms :: How To Make A Dynamic Sitemap

Jan 27, 2010

I need to make a sitemap with all the products i have in database.

I can make it easly in aspx web file, but is it better if i make it in Web.sitemap file? Would search engines find it?

And if is better to make it in Web.sitemap, how can i create siteMapNode for each product i have (and i add) in database?

View 12 Replies

Web Forms :: How To Bind An Xml Sitemap String

Mar 4, 2010

In my ASP.NET Page_load I have this code:

[Code]....

Where SiteMenu is an Asp:menu control. But for some reason I'm getting a menu with one element with name "siteMap" and a child element with name "siteMapNode".

I would like to have only one element (rappresented by the <SiteMapNode> xml tag ) with title "default". what I'm doing wrong?

I don't want to use a file but an XML string.

View 1 Replies

Web Forms :: Different CssClass For SiteMap.CurrentNode

Apr 8, 2010

I have a SiteMap navigation using an asp:repeater control databound to a SiteMapDataSource. The repeater contains an asp:hyperlink for each node, and the CssClass is explicitly defined:

[Code]....

How would I cause the item that corresponds to the current node on the sitemap tree to have a different CssClass? I've had a few unsuccessful attempts (stab in the dark in all honesty) using the ItemDataBound event handler and inline code.

View 2 Replies

Web Forms :: Dynamically Generate Sitemap Of Any Url?

Apr 6, 2010

I am develop a webservice for user have to simple enter a url of website and it must generate a sitemap.xml for that particular website.

I have used GoogleSiteMapProvider but gives only local website Sitemap not any other.

View 3 Replies

Web Forms :: Sitemap Does Not Accept Path?

Feb 14, 2011

site map doesnot accept pat with ?id=2,etc.

eg:-

www.aabc.com/search.aspx?id=3 is not accepted nad gives error.

whereas, www.aabc.com/search.aspx works fine.what should i do.

View 6 Replies







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