get application path
Posted on 2006-05-10
i have some folders in my asp.net application
and all aspx page use the same JS file
but when i need to call a page in a JS Function
the page is not found by some others pages
as you can see i don"t know how to launch the page3.aspx when i'm in page1.aspx and n page2.aspx
for now i use this :
var url = "../page3.aspx"
it works for page2.aspx not for page1.aspx
i also tried this with no success : "~/page3.aspx"