The ResolveUrl here works fine and generates the desired path <a href='<%= Page.ResolveUrl("~/HomePage.aspx")%>'>Home</a>
But here
$(document).ready(function() {
upload1 = new SWFUpload({
// Backend Settings
upload_url: '<%= Page.ResolveUrl( "~/UserProfile/Photos.aspx") %>',
the path is not generated properly just /UserProfile/Photos.aspx
is placed there.
both are on different pages.
Edit
My desired output should to be www.domain.com/UserProfile/photos.aspx
when I use this method on my development mahine it works fine and generates /applicationname/UserProfile/photos.aspx
but not with the production environment. The application on the production environment is www.domain.com/wwwroot/Userprofile/photos.aspx
.
and the file SWFuploader is on the same Photos.aspx page.