Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Displaying images from another folder.?

Displaying images from another folder.?

Scheduled Pinned Locked Moved ASP.NET
sysadmindockerhelpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mir_As
    wrote on last edited by
    #1

    i have 2 different folders. Admin folder and Images folder. Admin folder has just manage.aspx form.(Images folder not in that folder) i want to display my pics in Admin/manage.aspx page.But my images are in Images folder.  <eit:LightBoxHyperlink ID="lb1" runat="server" Album="Sample1" Caption="Gallery 1 Pic 1" ThumbnailUrl='<#"~/Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>' Height="84px" Width="113px" style="vertical-align: middle; text-align: center" /> it searches my images under the :Admin/Images.... (so i get error message) But images under Images/..

    N 1 Reply Last reply
    0
    • M Mir_As

      i have 2 different folders. Admin folder and Images folder. Admin folder has just manage.aspx form.(Images folder not in that folder) i want to display my pics in Admin/manage.aspx page.But my images are in Images folder.  <eit:LightBoxHyperlink ID="lb1" runat="server" Album="Sample1" Caption="Gallery 1 Pic 1" ThumbnailUrl='<#"~/Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>' Height="84px" Width="113px" style="vertical-align: middle; text-align: center" /> it searches my images under the :Admin/Images.... (so i get error message) But images under Images/..

      N Offline
      N Offline
      Nishant Singh
      wrote on last edited by
      #2

      Use like this ThumbnailUrl='<../images/AddChildWBSCode.gif>'

      M 1 Reply Last reply
      0
      • N Nishant Singh

        Use like this ThumbnailUrl='<../images/AddChildWBSCode.gif>'

        M Offline
        M Offline
        Mir_As
        wrote on last edited by
        #3

        But i must use databinding. ThumbnailUrl='<%#"Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>' i dont display just one image.i use database.

        N 1 Reply Last reply
        0
        • M Mir_As

          But i must use databinding. ThumbnailUrl='<%#"Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>' i dont display just one image.i use database.

          N Offline
          N Offline
          Nishant Singh
          wrote on last edited by
          #4

          Hi Mir, No Problem write like this

          ThumbnailUrl='<%#"../Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>'

          M 1 Reply Last reply
          0
          • N Nishant Singh

            Hi Mir, No Problem write like this

            ThumbnailUrl='<%#"../Images/"+DropDownList1.SelectedValue+"/Thumbnail/"+DataBinder.Eval(Container.DataItem,"small") %>'

            M Offline
            M Offline
            Mir_As
            wrote on last edited by
            #5

            Thanks i have done it already.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups