Results 1 to 7 of 7

Thread: User Control Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    User Control Problem

    hi

    i've created user control which contains images and javascript. the images are reffering from root folder.


    i tried to place the user control in subfolders aspx page. The control's image is not refering the path.


    How can i use the user control inside the subfolder?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: User Control Problem

    When specifying the path to the image, are you using ~/Images/image.jpg?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    Re: User Control Problem

    Quote Originally Posted by mendhak
    When specifying the path to the image, are you using ~/Images/image.jpg?

    yes im using the ~/imagepath.. but if i put the control in subfolder aspx page some images are not displayed in page

  4. #4
    Fanatic Member
    Join Date
    May 2005
    Posts
    608

    Re: User Control Problem

    What ~ does?

    HoraShadow
    I do like the reward system. If you find that my post was useful, rate it.

  5. #5
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: User Control Problem

    I believe it means start at the root directory.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  6. #6
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: User Control Problem

    Quote Originally Posted by mahivr
    yes im using the ~/imagepath.. but if i put the control in subfolder aspx page some images are not displayed in page
    If you are hard coding pathes into your code, there isn't much you can do other than put it in the correct path. Why not make the path a property and set when you use the control?
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  7. #7
    Registered User
    Join Date
    May 2006
    Posts
    13

    Re: User Control Problem

    try .. instead of ~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width