473,498 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ImageUrl property for jpg pictures within an outside virtual directory

OK
I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net application.
How should I code the imageurl property to have this working?

Image1.imageurl = ?

Mar 29 '08 #1
5 7298
On Mar 30, 3:08 am, "OK" <o...@xs4all.nlwrote:
I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net application.
How should I code the imageurl property to have this working?

Image1.imageurl = ?
if pictures from fliker can be refered in pages...
why this can't be done...?

Its going to work if the folder's is also can be accessed from
internet.
in other words web shated folders...
but again provide full qualified name..

like http://www.someweb.com/picturefolder...
Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
Mar 30 '08 #2
OK
Hi Masadur,

I don't think you understood the issue. Imagine the web runs on the location
C:\inetpub\wwwroot\MyWeb while all images are located at D:\images. Of
course I can't web share the D:\images because ayone would be able to find
all pictures by the browser url. I know that I must do something with a
virtual directory within IIS which refers to the D:\images directory. I've
already configured that but what should I type for this imageurl property?

regards,

Oscar
"Masudur" <mu*****@gmail.comschreef in bericht
news:1f**********************************@s37g2000 prg.googlegroups.com...
On Mar 30, 3:08 am, "OK" <o...@xs4all.nlwrote:
>I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net application.
How should I code the imageurl property to have this working?

Image1.imageurl = ?

if pictures from fliker can be refered in pages...
why this can't be done...?

Its going to work if the folder's is also can be accessed from
internet.
in other words web shated folders...
but again provide full qualified name..

like http://www.someweb.com/picturefolder...
Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog

Mar 30 '08 #3
On Mar 30, 2:57 pm, "OK" <o...@xs4all.nlwrote:
Hi Masadur,

I don't think you understood the issue. Imagine the web runs on the location
C:\inetpub\wwwroot\MyWeb while all images are located at D:\images. Of
course I can't web share the D:\images because ayone would be able to find
all pictures by the browser url. I know that I must do something with a
virtual directory within IIS which refers to the D:\images directory. I've
already configured that but what should I type for this imageurl property?

regards,

Oscar

"Masudur" <munn...@gmail.comschreef in berichtnews:1f**********************************@s 37g2000prg.googlegroups.com...
On Mar 30, 3:08 am, "OK" <o...@xs4all.nlwrote:
I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net application.
How should I code the imageurl property to have this working?
Image1.imageurl = ?
if pictures from fliker can be refered in pages...
why this can't be done...?
Its going to work if the folder's is also can be accessed from
internet.
in other words web shated folders...
but again provide full qualified name..
likehttp://www.someweb.com/picturefolder...
Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
Hi.. if you already made the image directory as a virtual directory...
let say images folder

www.johndoe.com/images
where images is the virtual directory that refers as d:/images...

your url from pages will be like this...
image1.imageurl = "~/images/SomeImage.gif"

hope that helps

Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
Mar 30 '08 #4
You should make a virtual directory MyImages on your site that will point to
d:\images. Having done that, you can address images as Image1.imageurl =
"~/MyImages/image1.jpg"

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"OK" <ok*@xs4all.nlwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
Hi Masadur,

I don't think you understood the issue. Imagine the web runs on the
location C:\inetpub\wwwroot\MyWeb while all images are located at
D:\images. Of course I can't web share the D:\images because ayone would
be able to find all pictures by the browser url. I know that I must do
something with a virtual directory within IIS which refers to the
D:\images directory. I've already configured that but what should I type
for this imageurl property?

regards,

Oscar
"Masudur" <mu*****@gmail.comschreef in bericht
news:1f**********************************@s37g2000 prg.googlegroups.com...
>On Mar 30, 3:08 am, "OK" <o...@xs4all.nlwrote:
>>I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net
application.
How should I code the imageurl property to have this working?

Image1.imageurl = ?

if pictures from fliker can be refered in pages...
why this can't be done...?

Its going to work if the folder's is also can be accessed from
internet.
in other words web shated folders...
but again provide full qualified name..

like http://www.someweb.com/picturefolder...
Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog


Mar 30 '08 #5
OK
Hi Eliyahu and Masadur,

I've done that and the image still is not shown within the the browser.

I've first configued a virtual directory called MyImages in IIS. The
directory points to the directory D:\Images.
Within VS2005 I've coded
Image1.ImageUrl="~/MyImages/picturename.jpg"
After browsing the page at my development PC, the picture is not shown and a
red cross in the upper left corner shows me that the image couldn't be
retrieved. In case I right click at the image properties it shows

adres(URL) : http://localhost:1089/MyWeb/MyImages/picturename.jpg

Since it shows th name of the virtual directory after the root location of
MyWeb, I've tried another setting for the ImageUrl property (without the ~
character):

Image1.ImageUrl="/MyImages/picturename.jpg"

And it's still not working. The browser shows the picture properties as
adres(URL) : http://localhost:1089/MyImages/picturename.jpg

Any Idea how I can get this working?

regards,
Oscar


"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgschree f in
bericht news:uF**************@TK2MSFTNGP02.phx.gbl...
You should make a virtual directory MyImages on your site that will point
to d:\images. Having done that, you can address images as Image1.imageurl
= "~/MyImages/image1.jpg"

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"OK" <ok*@xs4all.nlwrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
>Hi Masadur,

I don't think you understood the issue. Imagine the web runs on the
location C:\inetpub\wwwroot\MyWeb while all images are located at
D:\images. Of course I can't web share the D:\images because ayone would
be able to find all pictures by the browser url. I know that I must do
something with a virtual directory within IIS which refers to the
D:\images directory. I've already configured that but what should I type
for this imageurl property?

regards,

Oscar
"Masudur" <mu*****@gmail.comschreef in bericht
news:1f**********************************@s37g200 0prg.googlegroups.com...
>>On Mar 30, 3:08 am, "OK" <o...@xs4all.nlwrote:
I am using an image control to display some images within a virtual map
(ImagesRoot in IIS) outside of the web root in my vb asp.net
application.
How should I code the imageurl property to have this working?

Image1.imageurl = ?

if pictures from fliker can be refered in pages...
why this can't be done...?

Its going to work if the folder's is also can be accessed from
internet.
in other words web shated folders...
but again provide full qualified name..

like http://www.someweb.com/picturefolder...
Thanks & Best of Luck
Md. Masudur Rahman
www.munna.shatkotha.com
www.munna.shatkotha.com/blog



Mar 30 '08 #6

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

Similar topics

10
2111
by: Tony Abate | last post by:
I am working on an ASP.NET app that is going well except for one thing. I build my application and then move the .aspx file to a different directory. I can point the Codebehind property back to the...
4
1835
by: Just D. | last post by:
How can we change the property of one subdirectory of the Virtual Directory? One of the directories should be granted "Write". Should we delete this Virtual Directory to recreate it with the...
1
1454
by: Oenone | last post by:
I've been working on migration of my company's VB6 ASP system to VB2005 over the last year or so, and am currently presenting my findings and recommended course of action to our management team....
3
10466
by: Thomas Satzinger | last post by:
Hallo., i just encounterd a strange thing which i cannot resolve. I am saving a bitmap created in memory to the asp temp folder (asp.net 2.0) this works fine, and i don´t want to create an...
2
2874
by: DC | last post by:
Hi, why does this not work: <asp:ImageButton id="myButt" runat="server" OnCommand="myButt_kick" ImageUrl="<% =GetMyButtUrl() %>" </asp:ImageButton>
6
4328
by: ManagedCoder | last post by:
Hi, My requirement is as follows: I need to set the HttpExpires (enable content expiration - set to 7 days) on a folder within a virtual directory. I have been able to set the HttpExpires...
2
15037
by: Adam Right | last post by:
Hi All, I'm developping a site using VS2008 (c#) on IIS 6.0. In my application images are not shown by the image control, they are in the web server machine and the main folder path is...
6
5125
by: Jeff Newman | last post by:
Hello, Could anyone explain to me why the following class's destructor shows up as having multiple branches? (At least as judged by gcov 4.1.2 when compiled with gcc 4.1.2 ): struct blah {...
2
2282
by: Pat | last post by:
Hi, I have a picture somewhere under 'Program Files' Folder. When I assign ImageURL to a Hyperlink it does nothing. It does not read the picture file. But when I copy that picture to...
0
7125
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
7203
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...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
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,...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
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
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
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...

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.