Giving a link in a asp.net mvc2 page for a non-mvc page ie, a asp.net webform - asp.net-mvc-2

I tried to give link to my reports located in Reports folder under "Views". My problem is that I am unable to direct from a mvc page to myReport since it is looking for that page in controller, which doesnt exist. I have the route given in global.asax. am i missing something here?

my mapping to web pages is as follows
aspx page (contains relative path to the application eg:
<siteMapNode url="Managers/FindUser.aspx" title="Find user"/>
is translated as :http://localhost/Managers/FindUser.aspx
mvc page
<siteMapNode url="Managers/Management/" title="Management" />
is translated as :http://localhost/Managers/Management/

Related

New Coldfusion11 site doesn't display .cfm pages. Displays index.cfm properly

I am getting a 500 Internal error when trying to load any .cfm page that isn't Index.cfm on my new coldfusion site. This is with Asp.net/IIS 8.5. I went through and created the new site based on previously built sites (I am new and still learning CF and web development) and I have got the Index.cfm to go live, but when I add any files like test.cfm I cannot display them as a new page.
I can however load .html files like test.html and I can call to .cfm pages with cfinclude (I have a header, footer, and form in the index all called upon with cfinclude)
I don't know if I have missed something entirely while setting up this site, or if there is a simple setting I've missed, but any and all help would be appreciated, thanks in advance!
500 Internal server error

Setting the 404 page without using the NodeId or Guid

I have a webapplication using umbraco which has a page of custom type SinglePageApplication. This content page is on the root:
Content
|
|-Portal (of Type SinglePageApplication)
This page has an Id (for example: 1050) and this page contains an Angular app. What I want is when a url doesn't exist and umbraco should throw the 404, it goes to this page and let Angular handle the page not found situation.
To achieve this, I have changed the error404 configuration in the umbracoSettings.config to this
<error404>1050</error404>
And this works. But soon this web application will be released to live which has a different database and the Portal page probably will have a different Id (and Guid). Obviously, the 404's which umbraco receives will not be forwarded to the right page anymore and I have to change the id manually on the live server. And I would like to prevent that.
The examples in the umbracosettings.config states I can use xpaths and I found many examples when I googled this issue but all were for umbraco 7 and as none of them seems to work for umbraco 8, I got the feeling something might have changed for this setting. Unfortunately, the documentation for umbraco 8 is quite poor currently.
What I have tried so far are:
<error404>//Page[nodeName='Portal']</error404>
<error404>//SinglePageApplication[node='Portal']</error404>
<error404>$site//SinglePageApplication[node='Portal']</error404>
<error404>$root//SinglePageApplication[node='Portal']</error404>
Perhaps I missed one but they didn't work either, all resulted in the ugly 404 page.
What is the way to forward umbraco to a content page when a 404 occured, like it works with using the NodeId but then without being bound to the nodeId or Guid of a page?
You can set the following in the web.config and then set the path variable to be whatever you like.
<httpErrors>
<error statusCode="404" path="/errors/404/" responseMode="ExecuteURL" />
</httpErrors>

AEM 6.3 site map page

Is there a build in way to create a site map page. I'm not looking for a sitemap.xml generator, that we have, but a page that will list all the page named and a link.
My GoogleFu keeps bringing up the sitemap.xml generation.
Check the foundation component under '/libs/foundation/components/sitemap' you could port this functionality into a custom component for your site

Routing in MVC application- Forcing route to go to MVC route rather than physical web form folder

I have solution with co-existing MVC and Web forms. I have a folder called New in my UI project with page as default.aspx.
By default mydomain/New lands me to tohis default.aspx page. Now i want to land it to MVC controller i have created.
New controller is: NewController and i want route all request like mydomain/New should land to this controller ignoring the physical file present in my project.
How can i do this?
Delete the physical page and folder. IIS won't send the request to MVC unless the physical path doesn't exist.

Linking to a Page that "contains" a specific Web Content Article in Liferay 6

I'm building a Portlet for a site powered by Liferay EE 6.0 SP1 that will suggest related or otherwise interesting content depending on what the user is currently looking at.
For example, suppose the user is on a Page that contains a Web Content Display portlet that is displaying Web Content Article 5. My portlet will contain HTML links to the Pages where the user can view Web Content Articles 6 and 7 (which contain content that is determined to be similar to the content in Web Content 5).
The problem comes in because I don't want my portlet to display HTML links to Web Content Articles 6 and 7 (assuming such a concept is even valid), I want my portlet to display links to the Pages on which those items are displayed (i.e., links to the Pages that contain Web Content Display portlets configured to show those Web Content Articles).
Is there a way to:
Associate a Web Content Article with a Page so that if I have the former, I can fetch the latter?
Or, determine the page(s) that contain portlets that display a Web Content Article?
Alternatively, if there were a way to get all portlet instances associated with a particular page, that might lead to a solution as well.
One approach to this problem appears to be to add a "Link to Page" control to the Web Content Article's Structure. Content managers can use this to create many-to-one relationships between Web Content Articles and Pages.
This solution is problematic, though, because there is no constraint on what page is selected when the Web Content is edited.
For example, a content manager might create a Web Content Article entitled "Our History", but specify the "Products" page as the value of that Article's "Link to Page" control. When the related content portlet renders the "Our History" Article, it will create a hyperlink to the "Products" page which in this case does not display the "Our History" Article anywhere.
Arguably, this could be considered a feature, but perhaps there is a better way to do it.
I afraid this is a feature that does not exist yet on Liferay. At least on Liferay pages there is an feature request on the very same topic. Dates on the discussion are on March 2011 so probably something is coming soon :)
Another solution that we are currently considering is to create a custom view mode for the portal (i.e., "VIEW", "PRINT", etc.) called "XML". When the portal detects that the browser is requesting the XML mode (similarly to how Sitecore detects which device to use), it bypasses the theme, and all portlets that support this XML mode would render their content in XML format.
The output might look something like this:
<?xml version="1.0" encoding="utf-8" ?>
<portal>
<portlet id="..." title="..." ...>
<JournalArticle>
<uuid_>...</uuid_>
...
</JournalArticle>
...
</portlet>
</portal>
A periodic process would then crawl the site in XML mode and update a Lucene index.
The obvious problem with this approach is that it requires that every portlet we use on the site be custom-developed. For various reasons (some would call it an over-ambitious creative department; I call it a significantly deficient existing feature set), we might end up having to go this route anyway.