473,486 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

adress of server

I got a function that return the url of a image, the problem is that the
image control on the .aspx page automaticaly adds the adress of itself to
the adress

Example:
The page http://localhost/myapp/pages/misc/index.aspx calls the function,
and it returns the string "images\thumb\001.jpg"

The image control on the page will then point to the adress:
http://localhost/myapp/pages/misc/images\thumb\001.jpg (wich is wrong).

The image folder is located at root of my project (myapp) so the adress
should be:
http://localhost/myapp/images\thumbs\001.jpg

Since the pages could be in different sub-folders at different levels under
the myapp folder i can't simply add "..\..\..\" to fix it.

Is there any function that will return the http://localhost/myapp (the root
of my project folder)?
I tried using System.AppDomain.CurrentDomain.BaseDirectory() but that will
return the path as "c:\inetwww\myapp\"
Nov 18 '05 #1
0 991

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

Similar topics

6
2244
by: RosalieM | last post by:
How can i know the nic adress from an incoming socket ? I can easily know the ip adress and port number but how do i have some information about arp level ? Thanks
0
3325
by: SonGoten13 | last post by:
Hi The situation is that i should check on my intranet-page the rights of the user to decide wich information he can access. I have to use the Windows Login Information(User/pw). I found out that...
0
1411
by: Jarod_24 | last post by:
I got a function that return the url of a image, the problem is that the image control on the .aspx page automaticaly adds the adress of itself to the adress Example: The page...
3
1598
by: Jarod_24 | last post by:
I got a function that return the url of a image, the problem is that the image control on the .aspx page automaticaly adds the adress of itself to the adress Example: The page...
4
3038
by: Sebho | last post by:
Hello, i made an app that use sockets, based on this sample : http://www.microsoft.com/downloads/details.aspx?FamilyId=4B3215C0-62E7-4B84-9944-7582B8CD0125&displaylang=en i'have a problem, i...
1
1080
by: Halimaji Nijazi | last post by:
Hi everybody My application is running on a share on the server. On Starting the application I would like to check the mac-adress of the server, but the only information i have is the share...
19
1981
by: Ingo Linkweiler | last post by:
Has anyone a function/script to verify an e-mail-address? It should: a) check the syntax b) verify an existing mailserver or DNS/MX records ingo
11
3419
by: mwebel | last post by:
Hi, i had this problem before (posted here and solved it then) now i have the same problem but more complicated and general... basically i want to store the adress of a istream in a char* among...
3
3637
Sagittarius
by: Sagittarius | last post by:
Hi there. I have a problem concerning an UDP socket in C++ (Winsock). The next paragraphs is merely to explain the system I am working on. If U want to skip it, I have marked the question in...
3
4075
by: Slawomir | last post by:
Hello. Simple question about webforms: How to hide true address of website ? To this day a used "Server.Transfer()" to redirect to another page. In sql server I have a table with data like this: ...
0
7100
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
7126
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
7330
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
5434
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,...
1
4865
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...
0
3070
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.