ASP.NET / V2.0 / Master Pages + App_Code

T

TonyBushell

Hi All,

I need some help with the following:

I am building a CMS to bolt onto an existing website. The CMS will be
uploaded to the existing site off a folder say CMS_ADMIN/ for
example.

During the build stages of the CMS, the master pages and classes in
the app_code folder are all referencing okay and working as expected.

Now that I am publishing to a test server, I have copied over the CMS
to a folder named cms_admin/. When running the admin I stumble across
a number of issues.

1. The master page is not being found: It's reference "~/master-pages/
cms.master". I assume this is looking in the existing sites location
to find the folder and master page as when I copy into the folder
system above this works fine.

2. Any class files are not being found. There is an App_Code folder in
the existing site, but I dont want to publish the admin class files
here.

Is there a way to reference both the master and class files so that
they work both locally (where the did anyway) and on the published
server?


FYI - Both are setup with ASP.NET V2.0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top