image controls shows image local directory only

I

inungh

I have a image control on the design form.

I set image url. The image control only show image when I put the
image in the same directory.

Are there any place I can check?

Your help is great appreciated,
 
I

inungh

I have a image control on the design form.

I set image url. The image control only show image when I put the
image in the same directory.

Are there any place I can check?

Your help is great appreciated,


Here is my url code


ImageUrl="~/App_Data/Image/notepad.gif"


It shows at design time and when I move to local folder.

It does not show in the directory at run time.


Your help is great appreciated,
 
J

Juan T. Llibre

re:
!> Here is my url code
!> ImageUrl="~/App_Data/Image/notepad.gif"

Anything under App_Data can't be requested by any browser.

Try creating a directory /Image under your application root and place your image files in it.

Then, you can reference any image this way :

ImageUrl="~/Image/notepad.gif"





I have a image control on the design form.

I set image url. The image control only show image when I put the
image in the same directory.

Are there any place I can check?

Your help is great appreciated,


Here is my url code


ImageUrl="~/App_Data/Image/notepad.gif"


It shows at design time and when I move to local folder.

It does not show in the directory at run time.


Your help is great appreciated,
 
I

inungh

re:
!> Here is my url code
!> ImageUrl="~/App_Data/Image/notepad.gif"

Anything under App_Data can't be requested by any browser.

Try creating a directory /Image under your application root and place your image files in it.

Then, you can reference any image this way :

ImageUrl="~/Image/notepad.gif"

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/






Here is my url code

ImageUrl="~/App_Data/Image/notepad.gif"

It shows at design time and when I move to local folder.

It does not show in the directory at run time.

Your help is great appreciated,

Thanks millions,
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top