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

404 on live when clicking rad window to load url

2 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
G S S
Top achievements
Rank 1
G S S asked on 18 May 2009, 10:28 PM
On my site www.theplaygrounds.co.uk (unfinished design) if you click a link such as Compiler, the RAD Window open as a popup and briefly displays the content until it throws a 404 server error.

I have deployed the site as is on local (which is the environment which works fine).

Can someone explain the error? All the files are existant.

My first possible thought is the navigateurl property in each button (it may be just "abc.aspx" in which case ASP.NET looks at the root?).

Thanks

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 May 2009, 08:24 AM
Hi G S S,

I checked your code and I see that you are using the following function:

function openWin( Url)
{
    var oWnd = radopen(Url, "RadWindow4");
    oWnd.moveTo(50, 200);
}


and opening RadWindow like this:

<input id="Button1" class="btn" type="submit" onclick="openWin('Compiler.aspx'); return false;" value="Compiler" name="Button1"/>


In such case, the popup will try to open the following page: http://www.theplaygrounds.co.uk/Compiler.aspx because it will search for Compiler.aspx in the context of the folder where the calling page is, hence the problem - there is no such page in the root folder. You need to use either fully qualified Url (http://www.theplaygrounds.co.uk/MyFloder/Compiler.aspx) or a relative one - for example "./MyFolder/Compiler.aspx"



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tervel
Telerik team
answered on 19 May 2009, 08:38 AM
Hello G S S,

Your code looks OK, as far as RadWindow is concerned. It is simply that your page is really missing from the server location or is not accessible for some reason (completely unrelated to RadWindow).

If you type the following URL directly in the browser address bar:
http://www.theplaygrounds.co.uk/Compiler.aspx

You end up with the same error page, as in RadWindow:
http://www.theplaygrounds.co.uk/GenericErrorPage.htm?aspxerrorpath=/Compiler.aspx

Once you fix your system to display the page when accessed directly, it will display fine in RadWindow as well.

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
G S S
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Tervel
Telerik team
Share this question
or