ImageUrl property for jpg pictures within an outside virtual directory

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

    #1

    ImageUrl property for jpg pictures within an outside virtual directory

    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 = ?



  • Masudur

    #2
    Re: ImageUrl property for jpg pictures within an outside virtualdirector y

    On Mar 30, 3:08 am, "OK" <o...@xs4all.nl wrote:
    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


    Comment

    • OK

      #3
      Re: ImageUrl property for jpg pictures within an outside virtual directory

      Hi Masadur,

      I don't think you understood the issue. Imagine the web runs on the location
      C:\inetpub\wwwr oot\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" <munnacs@gmail. comschreef in bericht
      news:1fd78bf2-0c5b-41e4-aabb-cbfcd01123ed@s3 7g2000prg.googl egroups.com...
      On Mar 30, 3:08 am, "OK" <o...@xs4all.nl wrote:
      >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.imageur l = ?
      >
      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/blog

      Comment

      • Masudur

        #4
        Re: ImageUrl property for jpg pictures within an outside virtualdirector y

        On Mar 30, 2:57 pm, "OK" <o...@xs4all.nl wrote:
        Hi Masadur,
        >
        I don't think you understood the issue. Imagine the web runs on the location
        C:\inetpub\wwwr oot\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:1fd 78bf2-0c5b-41e4-aabb-cbfcd01123ed@s3 7g2000prg.googl egroups.com...
        >
        On Mar 30, 3:08 am, "OK" <o...@xs4all.nl wrote:
        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.. .
        >
        Hi.. if you already made the image directory as a virtual directory...
        let say images folder


        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


        Comment

        • Eliyahu Goldin

          #5
          Re: ImageUrl property for jpg pictures within an outside virtual directory

          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]




          "OK" <oku@xs4all.nlw rote in message
          news:OyGErQkkIH A.3940@TK2MSFTN GP05.phx.gbl...
          Hi Masadur,
          >
          I don't think you understood the issue. Imagine the web runs on the
          location C:\inetpub\wwwr oot\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" <munnacs@gmail. comschreef in bericht
          news:1fd78bf2-0c5b-41e4-aabb-cbfcd01123ed@s3 7g2000prg.googl egroups.com...
          >On Mar 30, 3:08 am, "OK" <o...@xs4all.nl wrote:
          >>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.imageu rl = ?
          >>
          >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
          >
          >

          Comment

          • OK

            #6
            Re: ImageUrl property for jpg pictures within an outside virtual directory

            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" <REMOVEALLCAPIT ALSeEgGoldDinN@ mMvVpPsS.orgsch reef in
            bericht news:uFOgO2kkIH A.1368@TK2MSFTN GP02.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]


            >
            >
            "OK" <oku@xs4all.nlw rote in message
            news:OyGErQkkIH A.3940@TK2MSFTN GP05.phx.gbl...
            >Hi Masadur,
            >>
            >I don't think you understood the issue. Imagine the web runs on the
            >location C:\inetpub\wwwr oot\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" <munnacs@gmail. comschreef in bericht
            >news:1fd78bf 2-0c5b-41e4-aabb-cbfcd01123ed@s3 7g2000prg.googl egroups.com...
            >>On Mar 30, 3:08 am, "OK" <o...@xs4all.nl wrote:
            >>>I am using an image control to display some images within a virtual map
            >>>(ImagesRoo t in IIS) outside of the web root in my vb asp.net
            >>>applicatio n.
            >>>How should I code the imageurl property to have this working?
            >>>>
            >>>Image1.image url = ?
            >>>
            >>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
            >>
            >>
            >
            >

            Comment

            Working...