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

URL hardcoded

Hi all, Im a newbie to ASP.NET [Oh no not another one :-) ]

I have image buttons , logos etc on my APSX pages and the images are located
at pecific URL on our Development server.

Now when I get around to deploying this app to TEST and then to PROD I will
need to change these URL's to point to the correct server address, whoa, too
much work and bad programming practice of course.

My question is , how can I make the URL's dynamic, ie: one URL fits all hosts?

I see how to set the Connection string in webconfig, but how to do this in
the image linksIm not sure.

Any help greatly appreciated and thanks in advance.

Mar 13 '06 #1
1 959
Ok, Found out how, but will post here anyway for others.

Use "Document Relative" ../Projfolder/Images/Image.jpg

That makes the image location dynamic

"Scotchy" wrote:
Hi all, Im a newbie to ASP.NET [Oh no not another one :-) ]

I have image buttons , logos etc on my APSX pages and the images are located
at pecific URL on our Development server.

Now when I get around to deploying this app to TEST and then to PROD I will
need to change these URL's to point to the correct server address, whoa, too
much work and bad programming practice of course.

My question is , how can I make the URL's dynamic, ie: one URL fits all hosts?

I see how to set the Connection string in webconfig, but how to do this in
the image linksIm not sure.

Any help greatly appreciated and thanks in advance.

Mar 13 '06 #2

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

Similar topics

1
by: Eddy | last post by:
Problem: In 'solution A', 'project 1' references 'project 2'. As such, when 'solution A' is built (debug mode), project '1' creates a dll in /debug, and project '2' referneces that dll. All is good....
2
by: Christopher | last post by:
Hi I have the following hardcoded the following (only the relevant code is shown), to populate a datagrid. The data loads into the grid as expected private void LoadData() {
3
by: Eych | last post by:
I have a module which has a function that returns values from a table. e.g. GetFromUsersTable(userID,"UserName") GetFromUsersTable(userID,"UserDept") etc. depending on the userID passed, it...
2
by: Marcus | last post by:
Is it possible to not hardcode the address to the web service in C#; i.e., the address written in the .wsdl file? Thanks
0
by: bryce_li | last post by:
Hello I am looking for the best architectural pattern in using the SOAP:address location: Hardcode the real endpoint or use localhost (in our company on an Intranet site) >From what I can see...
1
by: Pupeno | last post by:
Hello, I am doing some extreme use of optparse, that is, extending it as explained on http://docs.python.org/lib/optparse-other-reasons-to-extend-optparse.html I have subclassed OptionParser and...
0
by: gfergadis | last post by:
Hello, I have a couple problems which I think they need attention from someone a bit more experienced in web developpement than I am. I want to change the text of an ASP:Label (Server Side),...
2
by: John Sheppard | last post by:
Hello there, I was wondering if anyone could help me do a query that has a where clause against hardcoded row values. IE, something like this; Select * from myTable where myField in...
2
Plater
by: Plater | last post by:
So this is kind of an odd request. I want to be able to return a small "hardcoded" dataset from a stored procedure. Is that even possible? I want for example a "GetAvailableTypes" store procedure...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
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...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.