This is a migrated thread and some comments may be shown as answers.

NavigateUrl doesn't take relative url path

2 Answers 480 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shannnon
Top achievements
Rank 1
Shannnon asked on 24 Mar 2011, 08:07 PM
In radWindow, I have to pass the whole http path to enable the rad window route to the page, "~/Popus/Default.aspx" doesn't work, I have to put "http://localhost:1234/Popus/Default.aspx". Any ideas?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 Mar 2011, 03:43 PM
Hello Shannnon,

Are you using the client-side method setUrl()? If so this behavior can be expected - only on the server can the application root be resolved (that is the tilde sybol "~"). You can try to set such an address to an iFrame with the same results.
To work around this limitation you could write an URL rewriter in the server and call it via server code blocks (<%= %>) to resolve the URL.

The better solution is to use the client-side methods to traverse the folder tree - the ../ and ./ folders
I have inlcluded a simple page illustrating the approach. More information on the subject can be found for example in the followin tutorial: http://www.webreference.com/html/tutorial2/3.html.

Greetings,
Marin
the Telerik team
0
Shannnon
Top achievements
Rank 1
answered on 25 Mar 2011, 05:07 PM
Thank you Marin, when I change it to use "../Popus/Default1.aspx", it works.
Tags
Window
Asked by
Shannnon
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Shannnon
Top achievements
Rank 1
Share this question
or