473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What is the best way to configure this?

Hi,

Env : ASP.NET 2.0 / C#

Long time ago, I developed one asp.net WebApp
This structure is..
/WebApp (Virtual Directory)
|--- Web.config
|--- Master and aspx files...

In this aspx page, I used ~ to reference the master pages.

Now, I am developing different app, but I need these same web pages into the
subfolder of OldWebApp under NewWebApp virtual directory.....like this..

/NewWebApp (Virtual Directory)
|----- Web.config
|----- OldWebApp (Folder)
|--- Copied here from above WebApp Master and ASPX page
files..

The problem I found is that since I used ~ to reference MasterPage...,
I wasn't able to browse the OldWebApp because it tries to find the MasterPage
under NewWebApp, not the OldWebApp.

Is there any way I can configure this correctly WITHOUT modifying the source
code
or moving the master page to under NewWebApp?...

Maybe somehow set by web.config for the OldWebApp folder??
In that way, under OldWebApp, ~ will refer from OldWebApp folder, not
from NewWebAp...or other way?...possible?

I would like to keep these files in this structure for better maintenance,
if I can..

Hope you understand my issue.

Thanks,
Sep 10 '08 #1
1 1092
Well...In short, my question is that...
Is there any way I can override ~ behavior in web.config?

This is one of wish examples
If I set this way in the web.config..
<location path="OldWebApp">
<RootRelativeFrom>OldWebApp</RootRelativeFrom>
....
</location>

Something like that...This means that..
If I use ~ in any pages in the OldWebApp folder, the root will be from
OldWebApp folder, NOT the root of the web application.....

Any possible way to do this?

Thanks,
"TJ" wrote:
Hi,

Env : ASP.NET 2.0 / C#

Long time ago, I developed one asp.net WebApp
This structure is..
/WebApp (Virtual Directory)
|--- Web.config
|--- Master and aspx files...

In this aspx page, I used ~ to reference the master pages.

Now, I am developing different app, but I need these same web pages into the
subfolder of OldWebApp under NewWebApp virtual directory.....like this..

/NewWebApp (Virtual Directory)
|----- Web.config
|----- OldWebApp (Folder)
|--- Copied here from above WebApp Master and ASPX page
files..

The problem I found is that since I used ~ to reference MasterPage...,
I wasn't able to browse the OldWebApp because it tries to find the MasterPage
under NewWebApp, not the OldWebApp.

Is there any way I can configure this correctly WITHOUT modifying the source
code
or moving the master page to under NewWebApp?...

Maybe somehow set by web.config for the OldWebApp folder??
In that way, under OldWebApp, ~ will refer from OldWebApp folder, not
from NewWebAp...or other way?...possible?

I would like to keep these files in this structure for better maintenance,
if I can..

Hope you understand my issue.

Thanks,

Sep 10 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Daniel | last post by:
what is the best way to quickly make a mechanism to configure a windows service at runtime? external app that remotes in, custom commands, pulling mechanism to config file?
3
by: Rudy | last post by:
I'm building a application that will interface with SQL server. The amount of data is not alot, but the data will need to be proccessed quickly at about 3 - 4 minutes at a time. Then Idle for 2...
22
by: Alper AKCAYOZ | last post by:
Hello Esteemed Developers and Experts, I have been using Microsoft Visual C++ .NET for 1 year. During this time, I have searhed some topics over internets. Most of the topics about .NET is...
0
by: Markus Wollny | last post by:
Hello! When I try to run ./configure --with-java, it complains that ant doesn't work. However ant is installed, as is the latest Java SDK 1.4.2 from sun, PATH and JAVA_HOME are set correctly; ...
2
by: Marty McDonald | last post by:
Many of our apps are in production and they do not have proper error logging in them - unhandled errors are seen by the users in the form of error messages and stack traces. I know how to make...
8
by: yinglcs | last post by:
Hi, i am using red hat enterprise 4. It has python 2.3 installed. What is the best way to upgrade to python 2.4? I think one way is to compile python 2.4 from the source, but I can't remove...
0
by: Satish S Nandihalli | last post by:
following errors were found on executing configure file: 1) configure: WARNING: thread.h: present but cannot be compiled configure: WARNING: thread.h: check for missing prerequisite headers?...
1
by: Jim McCullars | last post by:
Greetings: Getting configure errors trying to build PHP 5.2.5 under Solaris 9. The configure command I use is this: ../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local...
3
by: =?Utf-8?B?SlZSdWRuaWNr?= | last post by:
Hey... thinking that I may need to upgrade my skillset when it comes to ASP based form-to-email scripting. is CDOSYS the best still on a w2k3/iis6 box? if so, can someone point me at the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.