Link to home
Start Free TrialLog in
Avatar of vossjck
vossjckFlag for United States of America

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.  
function ShowViewForm(id) 
        {
            window.open("/ECSMT/OrderDetail.aspx?OrderNumType=" + id);
        }

Open in new window


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.
Avatar of vossjck
vossjck
Flag of United States of America image

ASKER

I realize I put the wrong string in the code.
That was from a different test.   I've tried the function with the path as "~/OrderDetail.aspx?OrderNumType=" + id

Still goes into the ECSMT folder as opposed to the root.
ASKER CERTIFIED SOLUTION
Avatar of Eyal
Eyal
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vossjck

ASKER

The best solution is to use "../"  in the string.