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

Setting URL from client side for Radwindow

2 Answers 511 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 18 Oct 2009, 03:43 PM
Hi,

I am haveing a rad window whose url is set through function SetURL() from client side. Now the problem is The url from where I am calling the rad window is
"Page/Application/SomePage.aspx". Rad window url is "Page/Lease/Somepage.aspx". Now when i tried to set url like seturl(~/Page/Lease/Somepage.aspx") it appended the url and became Page/Application/SomePage.aspx/~/Page/Lease/Somepage.aspx. How should i get through this?

Thank you
Rakesh

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 Oct 2009, 08:00 AM
Hi Rakesh,

You cannot set the path by using the ASP.NET path convention ( where tilde represents the root of your web application) because this path will not be parsed from the browser - RadWindow is basically an IFRAME and it behaves just like one. You need to use either the full or relative paths if you are going to set them via JavaScript.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Princy
Top achievements
Rank 2
answered on 19 Oct 2009, 08:05 AM
Hi Rakesh,

Try replacing '~/' with '../' to set the url of the window from client side as shown below and see if it helps:

oWnd.setUrl("../Lease/Somepage.aspx");

Thanks
Princy.
Tags
Window
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Princy
Top achievements
Rank 2
Share this question
or