Results 1 to 4 of 4

Thread: path info changes the path

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    path info changes the path

    I wanted to retrive the path info string, therefore, my URL is like:

    http://localhost/public/test.aspx/123

    But when I go to the URL like that, all my stylesheet.css, and image path have changed to invalid ones. My css and images are in the root directory, how can I resolve that with provided URL like that?

  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: path info changes the path

    Set the paths to your files using the tilde ~. You won't be able to specify it directly when writing out the css/javascript files, you'll need to concatenate it with HttpRuntime.AppDomainAppVirtualPath.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: path info changes the path

    now i have a problem, my button submit event won't get called when using pathinfo...

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

    Re: path info changes the path

    I don't see any code in your post. Did you put any code there? Because I don't see any there. If you had put some code there, we could look at the code and try to figure out what the problem is. But I see no code there.

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