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


Similar Messages:

IE6 And IE7 Tags Are Disappearing While Using Position Relative Css In Aspx Page

Jun 24, 2010

i have created aspx pages with left navigation menu control... when ever mouse over the menu control some elements disappearing... that disappeared elements having position:relative CSS this problem having IE6.0 and IE7.0only

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

Php - CURL Gets Internal Server Error When Posting To Aspx Page?

May 4, 2010

I have a big problem. I have some applications made on an unix based system, and I use PHP with cURL to post an XML question to an IIS server with asp.net. Every time I ask the server something I get error:

HTTP/1.1 500 Internal Server Error
Date: Tue, 04 May 2010 07:36:08 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 3032

But if I ask same question on another server, almost identically to this one (BOTH configured by me) I get results like it should and the headers:

HTTP/1.1 200 OK
Date: Tue, 04 May 2010 07:39:37 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 9169

I tried everything, searched hundreds of forums, but i don't find anything.

In IIS logs I only get:

2010-05-04 07:36:08 W3SVC1657587027 80.xx.xx.xx POST /XML_SERV/XmlAPI.aspx - 80 - 80.xx.xx.xx Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1 500 0 0 I forgot to mention! If I use an XML request software, and ask same question, it works.

View 1 Replies

Web Forms :: Sitemap.CurrentNode Is Null In Internal Links?

Feb 28, 2011

i am developing website in which i am using web.sitemap to create breadcrumbs now the problem is that when i use to debug the nodes the internal links come null

<siteMapNode url="~/Public/Home.aspx" title="Home" description="Home"><siteMapNode url="~/Public/news.aspx" title="News" description="News">
<siteMapNode url="~/Public/event_Calender.aspx" title="Event Calender" description="Event Calender" />
</siteMapNode></siteMapNode>

as u can see now here my event_calender come null when i use to debug it from code.

IS there anyone who know how i can fix it.

View 6 Replies

Web Forms :: SiteMap.CurrentNode Returns Null For Internal SiteMapProvider?

Mar 7, 2010

I've run into an issue where calling SiteMap.CurrentNode returns null when it really shouldn't be. I'm using SiteMap.CurrentNode to highlight certain buttons on the page and generate a sub navigation bar (through SiteMap.CurrentNode.ChildNodes).

Now this works until I attempt to get to my pages of which are generated by a dynamic provider. For some reason whenever I attempt this on my Projects page SiteMap.CurrentNode returns null. Overall this is a bad situation for my program because then I cant generate my sub-navigation bar.

I was hoping someone here might be able to figure out the fault in my Sitemap or provider so that I can do a basic tutorial to others who are attempting the same thing since I haven't seen a tutorial that implements a provider in the manner that I have.

Web.SiteMap:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default.aspx" title="Home" description="Home page where updates and other information can be found">
<siteMapNode provider="ProjectProvider" />
<siteMapNode url="~/Contact/Default.aspx" title="Contacts" description="Contacts" />
</siteMapNode>.......

Provider:

Implements the following methods and all of them do not return Null (I checked via debug):
- RootNode
- GetRootNodeCore
- Initialize
- Clear
- BuildSiteMap

View 10 Replies

Visual Studio :: Adding A Server Control On Aspx Page Does Not Add Events In Aspx.designer.vb File?

Oct 5, 2010

I work in VS 2008. Whenver I add a server control(Label) and set it properties in aspx.vb and build the solution, I get the error "Label1 not declared". While analyzing this issue I noticed that the event handler statements for the Label1 where not added in the designer.asp.vb file. These statement would actually be added automatically when I drag and drop a control to my webpage.

I would also like to inform the scenario after which this problem came to me. I was working in VS 2008 , VS 2005 and VS 2003 in the same machine.Could this have caused the issue ?

Now each and everytime when I add a control, I am adding the "With Events" code in the designer page to make my build succesfull which makes me to spend more efforts.

View 2 Replies

C# - Is There A Built-in Create An Absolute (fully Qualified) Url From A Relative Path Such As "~/page.aspx" Given The Current URL?

Dec 8, 2010

Scenario is I have a application relative url like "~/path/to/page.aspx?query=string". I need to programatically create a web request to that page and currently using WebRequest.Create. The problem is WebRequest.Create requires a fully qualified url including the protocol/domain/port etc.I have access to the current Request.Url object but there doesn't seem to be an easy way to get just the base url keeping the protocol (HTTP vs HTTPS) as well as any port numbers as well as the path to the applicationI mean all the info there, so if need be I could just take all the parts and combine them but it seems like it might be error prone and it would be great to have something built-in that's well tested to do the job. Page.ResolveUrl gets me almost there, but it's missing the protocol and the domain/port.

View 1 Replies

Web Forms :: Adding Meta Tags In ASPX Page Within Master Page

Aug 28, 2012

I need to add Meta tags, description and keywords in aspx page. My aspx pages are in master page and I have already added meta tags and description in my Master Page.

 Now I want add in my other pages also so if someone search my site on GOOGLE it should look like same as this:

[URL] ...

How to achieve this?

View 1 Replies

C# - Adding Images To An ASPX Page?

Mar 11, 2011

I have an aspx page which I am pasting the code from. This page is a preview gallery which when I create a new gallery in my admin panel it auto updates to this page and places the text name I assign in the admin and assigns a page link which takes users to the actual gallery page for that preview... for instance I log in as admin and select manage free gallery.. enter the gallery name (for example" free preview") upload 8 or 9 images and a slideshow then hit submit. The gallery is then created and a link to that gallery is placed on my page for all free galleries. I want to not only have a link but an actual thumbnail image for these.. how would I do this given the code I am pasting below? I would also be willing to just eliminate the text link and go with a clickable thumbnail with a short description under it which actually would probably look better anyway. Pasted ASPX Code follows:

ok so I cant post the code because I am new..

View 1 Replies

C# - Adding Usercontrol To Aspx Page?

Jun 25, 2010

The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)

my code:

<%@ Register Src="~/LoginControl.ascx" TagName="TagLogin" TagPrefix="Login" %>
<Login:TagLogin id="CtrlLoginControl" runat="server"></Login:TagLogin>


wats wrong over here. wat i need to add any more..?

View 1 Replies

Adding .aspx Page To Existing Website?

Sep 29, 2010

I have a running ASP.NET web site. There is following problem with one of the forms:

One part of submitted data is added to database after "submit" is clicked. (to "table1") Another part is lost (not added to "table2", and no files uploaded) I have no source code of that project. So, because I cant edit existing page, I came to a decision to add new .aspx page to a running application with same functions as existing one. How can I do that? Or maybe you can recommend some other solution.

View 8 Replies

Web Forms :: Adding Master Page To The Default.aspx?

Feb 20, 2010

First i had taken Default.aspx Page .after that i added master page to my project.Now i want to include this master page into default.aspx page I was mention master page attribute in Page directive of defult.aspx.

Now problem is i am not able to Get the attribute of <asp:contentplaceholder>.

View 3 Replies

Configuration :: Adding Key Value To Aspx Page (design View)?

Jul 29, 2010

I am developing on my local machine, therefore my url is http://localhost/<VirtualDirectory>/ My site is hosted at http://www.<DomainName>.com

For example: my link to css file is <link href="/styles/styles.css" rel="stylesheet" type="text/css" />
This works fine on on the public site, but breaks on the dev machine because of the addition of the virtual directory level.

I want to add a key to my config file to manage the current location of the site: <add key="CurrentServerLocation" value="http://localhost/<VirtualDirectory>/"/> or

<add key="CurrentServerLocation" value="http://www.<DomainName>.com"/>

Then I want to add the key value to my links, so that I can change the server path in just one location, config file.

For example:

<link href="<#CurrentServerLocation>/styles/styles.css" rel="stylesheet" type="text/css" />

However, I don't know the correct syntax to add a key value to an aspx page?

View 1 Replies

WebConfigurationManager Error After Adding SiteMap?

May 16, 2010

I'm getting this error:

Compiler Error Message: CS0118: 'Configuration' is a 'namespace' but is used like a 'type'
Configuration myWebConfig = WebConfigurationManager.OpenWebConfiguration("~/");

This code has been in place for 5+ months without this issues, only today after adding this sitemap code do I have this issue.

<siteMap defaultProvider="ExtendedSiteMapProvider" enabled="true">
<providers>
<clear/>
<add name="ExtendedSiteMapProvider" type="Configuration.ExtendedSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>

I tried adding "System.Web." before the "Configuration ", but that did not work either:

System.Web.Configuration myWebConfig = WebConfigurationManager.OpenWebConfiguration("~/");

Error 1 'System.Web.Configuration' is a 'namespace' but is used like a 'type'

View 2 Replies

C# - Adding A .ASCX Item To The Sitemap?

Aug 23, 2010

Is there a way to add .ascx files to a sitemap such that it will load/unload the controls based on the last ones visited? The problem is i have a page that contains a few controls that get placed under one another, and i'd like to just be able to jump between them with the sitemap instead of creating a new page for them... this is what i'm trying to put into the sitemap without luck (see Product List, Product Detail):

<siteMapNode url="Default.aspx" title="Home" description="Home Page of Genuity">
<siteMapNode url="UserFunctions/ChangePassword.aspx" title="Change Password" description="Change Password" />
<siteMapNode url="Setup/EditUsers.aspx" title="Edit Users" description="Edit Users" />
<siteMapNode url="Setup/EditTraits.aspx" title="Edit Traits" description="Edit Traits" />
<siteMapNode url="DataEntry/EditSeedPartners.aspx" title="Seed Partners" description="Seed Partners">
<siteMapNode url="WebControls/Product List.ascx" title="Product List" description="Product List" >
<siteMapNode url="WebControls/ProductDetail.ascx" title="Product Detail" description="Product Detail" />
</siteMapNode>
</siteMapNode>
</siteMapNode>

View 1 Replies

Configuration :: Adding Aspx Page To A Precompiled HTML Website?

Jun 10, 2010

while i was trying to add my aspx pages(framework2.0) to a html precompiled website,

i get the following error

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. correct the error and then click the
Refresh button, or try again later.

A name was started with an invalid character. Error processing resource 'file:///D:/Site/Login.aspx'. Line 1, Position 2

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="_Default" %>
-^

here is my source code-

The XML page cannot be displayed Cannot view XML input using XSL style sheet.

View 1 Replies

Web Forms :: Adding User Controls Dynamically To Aspx Page

May 24, 2010

Adding user controls dynamically to aspx page

[Code]....


View 2 Replies

Adding User Controls And Display On Default ASPX Page

Apr 7, 2013

Add 2 user controls and display them on your default aspx page. One control will be a simple list of store contact information. The other control will be a featured product control which displays a featured product of your choosing with an image and a description.

So i created a web user control page something like stewiecontrols.ascx

And I want to how to register the page <@control ...... src="" prefix name="" prefix tag="" /> the rest of the code in html <div> ..... </div> tags.

My question is this. I'm creating a master page and the default page is created using master page. So how do I register this .ascx page on default page. Should I register the .ascx page under master page or how. I want the user controls to only be shown on default.aspx page.

View 4 Replies

Web Forms :: Exception Comes After Adding Web.sitemap File

Aug 26, 2010

I added web.sitemap file in my project.on Debug it shows an exception like this"The file

web.sitemap required by XmlSiteMapProvider does not exist."

how to solve the above error and any changes made in web.config file after adding web.sitemap file?

View 3 Replies

Web Forms :: Adding Button & OnClick Function In Aspx.cs Page Not Working

Oct 30, 2010

public void addComment(object sender, ImageClickEventArgs e)

View 4 Replies

Web Forms :: HTML Input Tag Is Adding 2 Times While Saving The Aspx.page

Dec 9, 2010

I have 1 aspx page.In that i am using Developer Express controls also. If i do some changes in that page and trying to save, only the HTML input tags are repeating 2 times.

<dx:TabPage Text="Guarantor"> --using Devxpress tab control here
<ActiveTabStyle BackColor="#FF8888">
</ActiveTabStyle>
<TabStyle BackColor="#F2F7FA">
</TabStyle>
<ContentCollection>
<dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
<table style="width: 883px" border="2">
<tr>
<td bgcolor="WhiteSmoke">
<asp:Label ID="lblPrefix" runat="server" Text="Prefix" CssClass="label"></asp:Label>
</td>
<td bgcolor="WhiteSmoke">
<asp:DropDownList ID="ddlPrefix" runat="server" Height="21px"
Width="127px">
</asp:DropDownList>
</td>
<td bgcolor="WhiteSmoke">
<asp:Label ID="lblSSN" runat="server" CssClass="label" Text="SSN"></asp:Label>
</td>
<td bgcolor="WhiteSmoke">
<input type="text" id="txtSSN" runat="server" onkeydown="ssn(this.id)" onkeyup="ssn(this.id)" />
<input id="txtSSN" runat="server" onkeyup="ssn(this.id)" /> --2nd time appear here
</td>
<td bgcolor="WhiteSmoke">
<asp:Label ID="lblGender" runat="server" CssClass="label" Text="Gender"></asp:Label>
</td>
<td width="147" bgcolor="WhiteSmoke">
<asp:DropDownList ID="ddlGender" runat="server" Height="21px"
Width="127px">
</asp:DropDownList>
</td>

View 5 Replies

Web Forms :: Adding A Virtual Folder Into Sitemap Generated URLs?

Feb 15, 2010

I'm not sure that what I need to do is possible.I'm using the SQL SiteMap Provider as the source for my main navigation menu. When a user hits my site, they are asked to enter their location (town name). This preference setting is being stored using the Profile Provider. The page then reloads to showwww.mysite.com/liverpool in the address bar, for example. The information shown on this page is relevant to where they are. I'm using URL rewriting to map this to a page that is passed a parameter (eg. viewZone.aspx?ZoneID=234). I now need to insert the town name into some of the URLs generated from the sitemap. For example:www.mysite.com/cars-for-salewould becomewww.mysite.com/liverpool/cars-for-saleSome URLs would need to remain unchanged such as www.mysite.com/shop.Do you know if this is possible? If needed I could put a placeholder inside the URL in the database - **townName**/cars-for-sale and then run some kind of replacement procedure at run-time, but I don't know where in the execution process I could do that.

View 5 Replies

Web Forms :: Sitemap File - Access To Aspx?

May 27, 2010

what is the function of sitemap file? i would like to create a user access to different aspx file, how to do?

View 2 Replies

Web Forms :: Web.sitemap - Default1.aspx Create One And Second Menu?

Feb 11, 2011

I want to create my menu, but something is not clear. I have:

-Default1.aspx
-Default2.aspx
-Web.sitemap

Default1.aspx:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</ asp: Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource10" runat="server" />
Default2.aspx:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</ asp: Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource10" runat="server" />
Web.sitemap:
<? xml version = "1.0" encoding = "utf-8"?>
<siteMap xmlns[URL]
<siteMapNode url="test" title="test" description="">
<siteMapNode url="" title="test" description="" />
<siteMapNode url="" title="" description="" />
</ siteMapNode>
</ sitemap>

Both the menu are the same. How to Default1.aspx create one menu, and how to create Default2.aspx second menu?

View 1 Replies







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