vossjck
asked on
Javascript - Open Window question
I have a visual studio 2010 solution.
It has 3 applications in it, all in C#.
The main application is called MainWeb. The second applicaiton is called ECSMT. The third is called CES.
On the web the directory structury has the contents of MainWeb at the root, then ECSMT and CES as directories off of the root.
The issue I am having is when I try to open an aspx page from the main root from within the ECSMT folder it seems that I cannot.
My function is simple.
it works for opening pages i have within the ECSMT folder, how do I make it work for pages stored above the ECSMT folder?
When I used the ~ character i get back the error that the page \ECSMT\~\OrderDetail.aspx does not exist.
Thank you for your help.
It has 3 applications in it, all in C#.
The main application is called MainWeb. The second applicaiton is called ECSMT. The third is called CES.
On the web the directory structury has the contents of MainWeb at the root, then ECSMT and CES as directories off of the root.
The issue I am having is when I try to open an aspx page from the main root from within the ECSMT folder it seems that I cannot.
My function is simple.
function ShowViewForm(id)
{
window.open("/ECSMT/OrderDetail.aspx?OrderNumType=" + id);
}
it works for opening pages i have within the ECSMT folder, how do I make it work for pages stored above the ECSMT folder?
When I used the ~ character i get back the error that the page \ECSMT\~\OrderDetail.aspx does not exist.
Thank you for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The best solution is to use "../" in the string.
ASKER
That was from a different test. I've tried the function with the path as "~/OrderDetail.aspx?OrderN
Still goes into the ECSMT folder as opposed to the root.