404 on live when clicking rad window to load url

3 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 18 May 2009 Link to this post

    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. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 19 May 2009 Link to this post

    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.
Back to Top