url problem?

Discussion in 'ASP .Net Building Controls' started by SStory, Sep 24, 2003.

  1. SStory

    SStory Guest

    I made a header control with built in menu. It works great. It is in the
    root dir.
    Then I made some files in a subdir to protect them.

    When I place the header control on them, it of course can't go to the
    root/images directory to get it without ../images/whatever

    is there a way to make the control always know how to get it from
    myroot/images/whatever?

    NO matter what page or what directory it was in.

    I will be using an ISP and hear at home--two different names, so I wanted to
    avoid absolute root dir names.

    Thanks.
     
    SStory, Sep 24, 2003
    #1
    1. Advertising

  2. "SStory" <> wrote in message
    news:...
    > I made a header control with built in menu. It works great. It is in the
    > root dir.
    > Then I made some files in a subdir to protect them.
    >
    > When I place the header control on them, it of course can't go to the
    > root/images directory to get it without ../images/whatever
    >
    > is there a way to make the control always know how to get it from
    > myroot/images/whatever?
    >
    > NO matter what page or what directory it was in.
    >
    > I will be using an ISP and hear at home--two different names, so I wanted

    to
    > avoid absolute root dir names.


    Try "~/images/whatever.gif.
    --
    John Saunders
    Internet Engineer
     
    John Saunders, Sep 25, 2003
    #2
    1. Advertising

  3. SStory

    SStory Guest

    Excellent!
    Thanks John.
    Seems to work great.

    Shane

    "John Saunders" <> wrote in message
    news:O%...
    > "SStory" <> wrote in message
    > news:...
    > > I made a header control with built in menu. It works great. It is in

    the
    > > root dir.
    > > Then I made some files in a subdir to protect them.
    > >
    > > When I place the header control on them, it of course can't go to the
    > > root/images directory to get it without ../images/whatever
    > >
    > > is there a way to make the control always know how to get it from
    > > myroot/images/whatever?
    > >
    > > NO matter what page or what directory it was in.
    > >
    > > I will be using an ISP and hear at home--two different names, so I

    wanted
    > to
    > > avoid absolute root dir names.

    >
    > Try "~/images/whatever.gif.
    > --
    > John Saunders
    > Internet Engineer
    >
    >
    >
     
    SStory, Sep 25, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Doug
    Replies:
    0
    Views:
    523
  2. Jon paugh
    Replies:
    1
    Views:
    950
  3. wl
    Replies:
    1
    Views:
    4,479
  4. anonymous
    Replies:
    1
    Views:
    4,662
    Francisco Padron
    May 8, 2005
  5. Just D.
    Replies:
    0
    Views:
    554
    Just D.
    Aug 11, 2004
Loading...

Share This Page