image controls shows image local directory only

  • Thread starter Thread starter inungh
  • Start date Start date
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 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,
 
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/
======================================
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,
 
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,
 
Back
Top