I'm using DotNetBlogEngine as my infrastructure for an asp.net blog website. DotNetBlogEngine creates "fake" pages for all blog articles and category pages. The problem is, when I integrate ajax into one of these "fake" httphandler pages, and then execute the ajax (a button click event in this case), I get errors related to being unable to locate the root directory....
If you check out my site at http://220.127.116.11/default.aspx
(not much to look at. Just wanted to upload to show the error) , then click the square, blue button on the top right called "Click Here", you'll notice you can click it over and over with no problem. The content in the blue bar successfully switches back and forth.
Now, however, if you click on the "General" link under "Categories" on the left hand side of the page, this page leads to the error I'm having. If you click the blue square again on this General page, it works fine the 1st click however the 2nd click should return an invalid image URL when trying to display the original phone advertisement again. Notice the URL of this page is called "category/General.aspx"? This page doesn't actually exist. It's a "fake" page DotNetBlogEngine creates via httphandlers. Now, if you right click on the invalid image, the URL it displays is "category/images/templatei
pg" . The correct path should not have "category" in it.
My imagepath in my image control looks like the following:
Any idea what may be causing this to not look in the root directory?