473,657 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

specify url in web.config

I am currently managing a number of websites, all following the same
structure.
However, when I launch a new website, I have to go through every page to
find and replace the base url's.

I would like to store the url in the web.config file so I would only need to
change this in one place.

Does this create unnecessary overhead, or is this a good method to solve my
problem
Nov 18 '05 #1
2 3142
web.config is fine. You might want to create your own xml file and SiteUrls
class if you need more flexibility (over caching, sharing, expandability,
strongly-typed)....

Karl

"GrantMagic " <gr***@magicali a.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I am currently managing a number of websites, all following the same
structure.
However, when I launch a new website, I have to go through every page to
find and replace the base url's.

I would like to store the url in the web.config file so I would only need to change this in one place.

Does this create unnecessary overhead, or is this a good method to solve my problem

Nov 18 '05 #2
should work fine. This is what I do to differentiate the DEV, Test and Prod
setups.
All identical with different Web.config files.

Curt

"GrantMagic " <gr***@magicali a.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I am currently managing a number of websites, all following the same
structure.
However, when I launch a new website, I have to go through every page to
find and replace the base url's.

I would like to store the url in the web.config file so I would only need
to
change this in one place.

Does this create unnecessary overhead, or is this a good method to solve
my
problem

Nov 18 '05 #3

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

Similar topics

1
2740
by: JD | last post by:
I've got a Windows Forms application that I'd like to NOT have an app.config file for. There are, however, a few "utility" assemblies used by the application and I'd like them to be in a subdirectory of the main app directory: c:\mainapp c:\mainapp\libraries I'm wondering if I can programmatically specify the "libraries" directory as a location to probe for assemblies at runtime. I don't see anywhere that the
3
3586
by: Mathew | last post by:
Hi How do you specfiy the version of the .net runtime libraries loaded for a ..net controls hosted in Internet Explorer 6? I have a control that's designed to work with .NET 1.1, but after installing the VS.NET 2005 beta the web browser embedded control is now running in the .NET 2.0 beta runtime environment, and crashing. Is it possible to have different IE hosted controls running side by side in different versions of the .NET...
3
4813
by: Daniel Xiao | last post by:
As we know, a App.config file can be specified in a C# project in the .Net IDE. However, how to specify the App.config file for a C# program independent of any C# project? For example, a.cs is such a C# program that it can only be compiled by the following command line under Windows console: c:> csc a.cs Seek for your guide.
2
5081
by: TaeHo Yoo | last post by:
In my current web.config, I have these lines ----------------------------------------------------------- <authentication mode="Forms"> <forms name="frmAuthentication" loginUrl="login.aspx" /> </authentication> ----------------------------------------------------------- How do I need to modify it, so that contactUS.aspx should be accessed without logining in. Thanks a lot in advance,
5
4286
by: Mike | last post by:
Is it possible to specify the target framework version in the Web.Config file? I'm planning on installing the Whidbey Beta2 framework soon and want to explicitly make sure I'm pointing to the 2003 framework for some existing web applications. Thanks, Mike
2
1316
by: lenyado | last post by:
i want to use the forms authentication for the folder in virtual folder "admin/" but i don't know how to config the web.config. once i turn on authentication mode to "Forms", all files will need authenticate, which is not what i want. anyone can help?
1
2565
by: Joseph Geretz | last post by:
I need to download a greater than 4 megabyte attachment via WSE / DIME. The only way I know how to configure this is via a .config file. Normally, the ..config file is the same name as the base application. I built a .NET driver program to test this, NetBrokerDriver and provided a NetBrokerDriver.exe.config file which specifies the following: <messaging> <maxRequestLength>-1</maxRequestLength> </messaging>
0
1208
by: Rajiv Das | last post by:
..Net 2.0 --------- Assume I am on a non-domain network. The proxy asks me to authenticate whenever I want to access the net. I have an app, through which I wish to access web sites using HttpWebRequest. Now in the config file snippet below: <system.net> <defaultProxy useDefaultCredentials="false">
3
2112
by: thomas | last post by:
How to specify application default web page in web.config? I mean, default web page, not a login page. Is it possible? Tomasz
0
1634
by: myth0s | last post by:
Hi, The question: Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one fail? Context: We are using the ActiveDirectory Membership Provider as part of our authentication solution. It is working great most of the time, but every now and then the AD process on the main server fail. With Windows this is not a...
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.