Parent Directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • programmerboy
    New Member
    • Jul 2007
    • 84

    Parent Directory

    Hi,
    I have a question regarding parent directory. Suppose in IIS I have created a website called "testsite". This testsite is pointing to D:\Websites\eco mmerce\testsite . In that directory I have an aspx page called test.aspx. This test.aspx have an image tag whose src is "../images/test.jpeg".Wher e would be that directory pointing to? Please remember that IIS "testsite" home directory is D:\Websites\eco mmerce\testsite . Also will it work if I have a folder called images in D:\Websites\eco mmerce ?
    Thanks for your help.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    In testsite you have the file test.aspx and the folder images. How do you reference the test.jpg from test.aspx?

    Comment

    • programmerboy
      New Member
      • Jul 2007
      • 84

      #3
      Originally posted by kenobewan
      In testsite you have the file test.aspx and the folder images. How do you reference the test.jpg from test.aspx?
      Thats what I wanted to know...whether I can access it or not. If yes then what would by src attribute say?

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Yes you can access, but I thought it would be better if you try yourself. Referencing images is not usually something we deal with, I'd file this under assumed knowledge.

        Comment

        • kunal pawar
          Contributor
          • Oct 2007
          • 297

          #5
          yes, ../ means see folder/file from outside current folder

          Comment

          Working...