image controls shows image local directory only

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • inungh

    image controls shows image local directory only

    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,

  • inungh

    #2
    Re: image controls shows image local directory only

    On Jul 10, 6:34 pm, inungh <inu...@gmail.c omwrote:
    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,


    Comment

    • Juan T. Llibre

      #3
      Re: image controls shows image local directory only

      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/
      =============== =============== ========
      "inungh" <inungh@gmail.c omwrote in message news:b45caff6-bc5c-42cb-aec3-59c4fb292714@r6 6g2000hsg.googl egroups.com...
      On Jul 10, 6:34 pm, inungh <inu...@gmail.c omwrote:
      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,



      Comment

      • inungh

        #4
        Re: image controls shows image local directory only

        On Jul 10, 10:44 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
        wrote:
        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/
        =============== =============== ========"inungh " <inu...@gmail.c omwrotein messagenews:b45 caff6-bc5c-42cb-aec3-59c4fb292714@r6 6g2000hsg.googl egroups.com...
        >
        On Jul 10, 6:34 pm, inungh <inu...@gmail.c omwrote:
        >
        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,
        Thanks millions,

        Comment

        Working...