In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!
<link type="text/css" href="<%=Url.Content("~/Content/Site.css")%>" rel="stylesheet" />
<link type="text/css" href="C:\mywfg\MyWfg.com2\source\Orchard\src\Orchard.Web\Modules\WFG.OnlineProductGuide\Content\Site.css" rel="stylesheet" />
<add name="ASPX" path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode" requireAccess="Script"/>
in hope that it would recognize webforms. Not sure if this is correct since I ran across this in a asp.net forum. It didn't help my master page to show.Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
We can add aspx and master pages but then why create an MVC Application.
As a standard practice if project is build in MVC then dont use ASPX pages in it. and vice versa.
Regarding Orchard, It is a Very flexible system. Check the below link - How you can have webforms page in Orchard.
http://stackoverflow.com/questions/6637696/webforms-page-inside-of-orchard-cms-application
But for Master pages please read this
http://orchard.codeplex.com/discussions/246117
Regarding your issue:
Open in new window
From your code i can say that the first line will try to find the css in Content folder in Root.Output the path generated by url.content - It will be
C:\mywfg\MyWfg.com2\source
It may not have the path till the module.
So you have to either give relative path till the module or you have to keep the css etc in the root folder.
Normal CMS Concept:
There is a Layout design (known as Base Page or Master Template or Layout Template) and add the modules in the given design so whole website have the same look and feel.
In orchard you dont have to create a master page for a Module but you should use the Layout.cshmtl to display.