Navigate to another page from radwindow

michaelsv650

New Member
Scenario:-I've a local asp.net website directory :- "\[code\]http://localhost/DemoWebsite/\[/code\]". A "Secure" folder is inside it. Two webpages are inside that folder :- Page1.aspx and Page2.aspx. And one more webpage:- Page3.aspx is outside the folder.Requirement:-Now 'Page2.aspx' is opening in a RadWindow from the parent page 'Page1.aspx'. A button 'Cancel' is there in 'Page2.aspx' and on-click of that button I want to come out of RadWindow and directly move to 'Page3.aspx'.Attempted Solution:-Button's 'OnClientClick' event is set to a JS function 'LogOff()'.Definition is:- \[code\]function LogOff(){ top.location.href = "http://localhost/DemoWebsite/Page3.aspx";}\[/code\]The Problem is that since I can't give the above mentioned enitre link when I want this website to push in some other server. So if I give the link as:-\[code\]top.location.href = "http://stackoverflow.com/questions/12607594/~/Page3.aspx";\[/code\] OR Just, \[code\]top.location.href = "http://stackoverflow.com/questions/12607594/Page3.aspx";\[/code\]And when I run the website and click the Cancel Button. It throws error "Resource can't be found." It is because after button click it tries the link \[code\]"/DemoWebsite/Secure/Page3.aspx".\[/code\] Question:- what to assign for \[code\]top.location.href\[/code\]so that it tries the link \[code\]"/DemoWebsite/Page3.aspx"\[/code\]. As Page3.aspx is NOT in Secure folder.
 
Back
Top