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. Reg IIS

Reg IIS

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-adminhelp
7 Posts 4 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.
  • S Offline
    S Offline
    sowjanya3
    wrote on last edited by
    #1

    U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">

    J A 2 Replies Last reply
    0
    • S sowjanya3

      U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">

      J Offline
      J Offline
      JHizzle
      wrote on last edited by
      #2

      sowjanya3 wrote:

      ImageUrl="../../../../../App_Data/pics/pic1.jpg" />

      Why are you making the path relative to the page it's on instead of relative to the root of your application? i.e. File A is at \images\a.jpg So in your ImageURL you make it referenced as "/images/a.jpg" Edit: Also your thread title is misleading. This has nothing to do with IIS or using regiis.

      modified on Thursday, April 1, 2010 6:04 AM

      S 1 Reply Last reply
      0
      • S sowjanya3

        U had suggested me to right click on the image and check the path. I had tried it but it didnt work. My prog is running on local host so the num ber keeps changing so how can i run the program. this was the path which was poping up on selecting the image. Friends please help me . http://localhost:49216/ws/App\_Data/pics/pic1.jpg In asp.net this is the coding which i have provided asp:TableCell ID="TableCell4" ColumnSpan ="2" VerticalAlign = "Top" HorizontalAlign ="Center" runat ="server">

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Don't Put Images is App_Data Folder. AFAIK, It won't be displayed from App_Data, Due to Security Reason. Just create a folder called Images in your Application Folder and store the images over there. Use Server.MapPath() to findout the actual url of images. Hope this will help you. Let me know if you have any more issue. Thanks

        Cheers ! Abhijit Codeproject MVP

        V 1 Reply Last reply
        0
        • A Abhijit Jana

          Don't Put Images is App_Data Folder. AFAIK, It won't be displayed from App_Data, Due to Security Reason. Just create a folder called Images in your Application Folder and store the images over there. Use Server.MapPath() to findout the actual url of images. Hope this will help you. Let me know if you have any more issue. Thanks

          Cheers ! Abhijit Codeproject MVP

          V Offline
          V Offline
          Venkatesh Mookkan
          wrote on last edited by
          #4

          Hey Abhiji, even though App_Data is not visible from the user end, you can still use it data putting you data files inside. I haven't tried with image files. But I used to places all my xml files inside App_Data which is accessible for the developer/coder.

          Castle Rider

          What if I freeze??? Don't forget to breath...

          My: Website | Yahoo Group | Blog Spot

          A 1 Reply Last reply
          0
          • V Venkatesh Mookkan

            Hey Abhiji, even though App_Data is not visible from the user end, you can still use it data putting you data files inside. I haven't tried with image files. But I used to places all my xml files inside App_Data which is accessible for the developer/coder.

            Castle Rider

            What if I freeze??? Don't forget to breath...

            My: Website | Yahoo Group | Blog Spot

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            Yes. App_Data is storage for files like Mdf, XML etc. The real advantage is that any file you place in App_Data won't be downloadable. Those file can be accessable by developer/Coder but not from outside, because these are not downloadable. This is the reason I guess Image not showing, as they get downloaded. Please share your input.

            Cheers ! Abhijit Codeproject MVP

            V 1 Reply Last reply
            0
            • A Abhijit Jana

              Yes. App_Data is storage for files like Mdf, XML etc. The real advantage is that any file you place in App_Data won't be downloadable. Those file can be accessable by developer/Coder but not from outside, because these are not downloadable. This is the reason I guess Image not showing, as they get downloaded. Please share your input.

              Cheers ! Abhijit Codeproject MVP

              V Offline
              V Offline
              Venkatesh Mookkan
              wrote on last edited by
              #6

              Yeah. You are right. I just tried with a simple sample. The image in the App_Data is inaccessible. Good to know.

              Castle Rider

              What if I freeze??? Don't forget to breath...

              My: Website | Yahoo Group | Blog Spot

              1 Reply Last reply
              0
              • J JHizzle

                sowjanya3 wrote:

                ImageUrl="../../../../../App_Data/pics/pic1.jpg" />

                Why are you making the path relative to the page it's on instead of relative to the root of your application? i.e. File A is at \images\a.jpg So in your ImageURL you make it referenced as "/images/a.jpg" Edit: Also your thread title is misleading. This has nothing to do with IIS or using regiis.

                modified on Thursday, April 1, 2010 6:04 AM

                S Offline
                S Offline
                sowjanya3
                wrote on last edited by
                #7

                hey thanks for your idea and suggestion its working man

                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