Is there length restriction for setUrl in IE?

2 posts, 1 answers
  1. Baal
    Baal avatar
    47 posts
    Member since:
    Mar 2008

    Posted 30 May 2013 Link to this post

    I have  javascript function for opening RadWindow.

    function OpenWindow(oWnd, url, width, height) {
        url = url == null ? oWnd.get_navigateUrl() : url;
     
        width = width == null ? oWnd.get_width() : width;
        width = width == null ? 600 : width;
         
        height = height == null ? oWnd.get_height() : height;
        height = height == null ? 600 : height;
     
        oWnd.set_keepInScreenBounds(true);
        oWnd.set_showContentDuringLoad(false);
        oWnd.setSize(width, height);
        oWnd.setUrl(url);
        oWnd.show();
    }

    I have noticed that radWindow adds the following at the end of the url in the opened RadWindow: &rwndrnd=0.37625581697120214

    As long as the length of url is less than 4096 characters, the RadWindow opens and displays the content. But once the length of url including the addon exceeds 4096 characters, the RadWindow opens but stays blank. Checking the propery of the opened blank RadWindow shows about:blank for Address. Note that this happens only in Internet Explorer. It works fine in Firefox.

    I am using 2011.3.1305.40.
  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Jun 2013 Link to this post

    Hi,

    This addition to the query string is added by the ReloadOnShow functionality of RadWindow, if you set the corresponding property to False this parameter will not be appended to the URL. As to the URL length limitation, it is not related to RadWindow but is limitation of Internet Explorer, please see the following article on the subject:
    http://support.microsoft.com/kb/208427

    Regards,
    Dobromir
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top