473,322 Members | 1,232 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,322 software developers and data experts.

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 3124
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***@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP10.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***@magicalia.com> wrote in message
news:%2****************@TK2MSFTNGP10.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
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...
3
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...
3
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...
2
by: TaeHo Yoo | last post by:
In my current web.config, I have these lines ----------------------------------------------------------- <authentication mode="Forms"> <forms name="frmAuthentication" loginUrl="login.aspx" />...
5
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...
2
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...
1
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...
0
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...
3
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.