URL hardcoded

G

Guest

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.
 
G

Guest

Ok, Found out how, but will post here anyway for others.

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

That makes the image location dynamic
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top