I have a simple web application that contains a folder called documents on the root of the website. Inside documents, is a file called test.doc. The path and file are stored in a database and when the web app is run, it reads in the values and creates the correct link to test.doc, in this case, it is http://localhost/documents/test.doc. The problem occurs when I publish to a folder on a development server. When I do that, my url is broken because it becomes something like this, http://development/testapp/documents/test.doc. This fails because it is looking for test.doc in http://development/documents/test.doc. I am not sure how to resolve this issue.
I am currently doing this in the markup, but I am unsure how to use ResolveUrl or ResolveClientUrl with it:
<a runat="server" href='<%# Eval("url") %>'><%#Eval("title") %></a>