Webform_InitCallBack Issue

6 posts, 0 answers
  1. Viswanathan
    Viswanathan avatar
    3 posts
    Member since:
    Dec 2012

    Posted 16 Dec 2013 Link to this post

    Hi,

    getting the famous webform_initcallback error that I cannot possibly solve with your advise in this form or internet..

    asp page

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication2.WebForm1" %>
     
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
         
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
            </telerik:RadScriptManager>
            <br />
            <telerik:RadComboBox ID="RadComboBox1" Runat="server">
            </telerik:RadComboBox>
            <br />
         
        </div>
        </form>
    </body>
    </html>

    No back end code...

    error message

    <!DOCTYPE html>
     
    <head><title>
     
    </title><link href="/WebResource.axd?d=b8adWYak0tImLef4A3fc9Z8_PHe8zKE0KBeii0SRRMrZL_rQKR3OpEAm8hUy-uv03lBksH755XDi7vSiZ89vE2Xm8yPpbVN8tgDpIGivYDQnNkR_vImJ98FznLpy2TKAt0SsnUx2PpsgZlfIGCOmNw2&t=635173547820000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=h0MkSn0fIoCPzk73lQFHIcHNbbdB7miPzq0lW5BCUc2QtaYhGg6oJBoMFR0wbWaB8UaxdZe3R9EyFVRK4ngG7EepI4EmV4tkPwQv3vgtmRmHTl8AEeJK5E0WCrCPbHzqJpTJv08DA_1P6x83siCLNOY_Sw2_VhZ4J8dyPVXyt-Q1&t=635173547820000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /></head>
    <body>
        <form method="post" action="WebForm1.aspx" id="form1">
    <div class="aspNetHidden">
    <input type="hidden" name="RadScriptManager1_TSM" id="RadScriptManager1_TSM" value="" />
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="Tm5N149yuKmzXB/3B/Ftu2dBnyIRBLBAcvYw8KDmwRC/RfHfYVBiQgUN8ptL4eCcbTI1nKphaomYMnQpljB21sjXL0iRXqYJPSGxSyBRh83N5SX1V1/8v4/Ugrgz+N+zM/fOXegnUBVzVX2plp21ebPiA6udRabI2DvItsRdt2D/e2fNxfyi+dG9WdhoYu6zFnPqYpQOPi2ORTaMmuFz8BrZ4aDKbsHFslH9pwzhY5/5aPQcngfhwpBPqfartm35mbi5Oha7KTAL54PlE+5wd1yb9lKS0hWiuGM+fzehrownLdaZQCgCtgcnyh0t7s2el2150Y2QZzSbyUwPMncnpg==" />
    </div>
     
    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
     
     
    <script src="/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZET-9_WfhWfl_XSuxoR-zJfEfiMeDl8e9dCAvy19aYDj4W7rFHhZMkA7EuwSPbjGhw2&t=635053916887951880" type="text/javascript"></script>
     
     
    <script src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3abd2cc352-ff4f-463d-bb67-37f24bb2febd%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.3.1015.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7a1d9c2d-6cf2-464f-9ad3-e479c730ac61%3a16e4e7cd%3af7645509%3a2003d0b8%3a24ee1bba%3af46195d3%3a1e771326%3a88144a7a%3aaa288e2d" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
    //]]>
    </script>
     
        <div>
         
            <script type="text/javascript">
    //<![CDATA[
    Sys.WebForms.PageRequestManager._initialize('RadScriptManager1', 'form1', [], [], [], 90, '');
    //]]>
    </script>
     
            <br />
            <div id="RadComboBox1" class="RadComboBox RadComboBox_Default" style="width:160px;">
        <!-- 2013.3.1015.45 --><table summary="combobox" style="border-width:0;border-collapse:collapse;width:100%">
            <tr class="rcbReadOnly">
                <td class="rcbInputCell rcbInputCellLeft" style="width:100%;"><input name="RadComboBox1" type="text" class="rcbInput radPreventDecorate" id="RadComboBox1_Input" value="" readonly="readonly" /></td><td class="rcbArrowCell rcbArrowCellRight"><a id="RadComboBox1_Arrow" style="overflow: hidden;display: block;position: relative;outline: none;">select</a></td>
            </tr>
        </table><div class="rcbSlide" style="z-index:6000;"><div id="RadComboBox1_DropDown" class="RadComboBoxDropDown RadComboBoxDropDown_Default " style="display:none;"><div class="rcbScroll rcbWidth" style="width:100%;"></div></div></div><input id="RadComboBox1_ClientState" name="RadComboBox1_ClientState" type="hidden" />
    </div>
            <br />
         
        </div>
         
     
    <script type="text/javascript">
    //<![CDATA[
     
    WebForm_InitCallback();Sys.Application.add_init(function() {
        $create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":0,"_height":0,"_skin":"Default","_uniqueId":"RadComboBox1","clientStateFieldID":"RadComboBox1_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[],"localization":"{\"AllItemsCheckedString\":\"All items checked\",\"ItemsCheckedString\":\"items checked\",\"CheckAllString\":\"Check All\"}"}, null, null, $get("RadComboBox1"));
    });
    //]]>
    </script>
    </form>
    </body>
    <script type="text/javascript">window.__vwd_mapping_data={"map":[{"sourceFile":"~/WebForm1.aspx"}]};</script>
    <!-- Visual Studio Browser Link -->
    <script type="text/javascript" src="/__vwd/js/artery"></script>
    <!-- End Browser Link -->
    </html>
    What am I missing?

  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 19 Dec 2013 Link to this post

    Hello Viswanathan,

    I have tested the provided code and everything is working fine. Could you please clarify what error occurs at your side (a video will be helpful). Also give us more details about your environment - browser and Telerik RadControls version.

    Regards,
    Peter Filipov
    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 the blog feed now.
  3. Viswanathan
    Viswanathan avatar
    3 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2013 Link to this post

    I have been working on the issue for the last couple of days and ultimately uninstalled trial and licenced versions of Telerik and installed ONLY the licenced version to solve this.

    No issues now. Thank you

  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 20 Dec 2013 Link to this post

    Hello Viswanathan,

    I am happy to hear that everything is working fine at your side. This is weird issue and we have never experienced such problem. In case that you have some steps to reproduce it, we will debug the javascript code and determine what causes it.

    Regards,
    Peter Filipov
    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 the blog feed now.
  5. Jerry
    Jerry avatar
    9 posts
    Member since:
    Oct 2011

    Posted 28 May 2014 in reply to Peter Filipov Link to this post

    I am having the same problem. I get this error: 

    SCRIPT5009: 'WebForm_InitCallback' is undefined 
    default.aspx, line 243 character 1

    and this is the line of code causing the error

    WebForm_InitCallback();Sys.Application.add_init(function() {
        $create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":0,"_height":0,"_postBackReference":"__doPostBack(\u0027ctl00$ContentPlaceHolderHeader$SkinChooser\u0027,\u0027arguments\u0027)","_skin":"Outlook","_text":"Outlook","_uniqueId":"ctl00$ContentPlaceHolderHeader$SkinChooser","_value":"Outlook","clientStateFieldID":"ctl00_ContentPlaceHolderHeader_SkinChooser_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[{"value":"Black"},{"value":"BlackMetroTouch"},{"value":"Default"},{"value":"Glow"},{"value":"Metro"},{"value":"MetroTouch"},{"value":"Office2007"},{"value":"Office2010Black"},{"value":"Office2010Blue"},{"value":"Office2010Silver"},{"value":"Outlook","selected":true},{"value":"Silk"},{"value":"Simple"},{"value":"Sitefinity"},{"value":"Sunset"},{"value":"Telerik"},{"value":"Vista"},{"value":"Web20"},{"value":"WebBlue"},{"value":"Windows7"}],"localization":"{\"AllItemsCheckedString\":\"All items checked\",\"ItemsCheckedString\":\"items checked\",\"CheckAllString\":\"Check All\"}","selectedIndex":10}, null, null, $get("ctl00_ContentPlaceHolderHeader_SkinChooser"));
    });

  6. Slav
    Admin
    Slav avatar
    1359 posts

    Posted 02 Jun 2014 Link to this post

    Hi Jerry,

    It is possible that the encountered problem is caused by incorrectly loaded ASP.NET AJAX framework. The fact that WebForm_InitCallback is not initialized means that the execution of the script was terminated before this function is declared. Nevertheless, I cannot determine the exact cause of the issue from the provided information.

    If you are still having difficulties, please open a support ticket and send a simple, fully runnable project that isolates the problem so that I can inspect it locally and provide a more to the point answer. An additional information that could be useful is the current version of UI for ASP.NET AJAX you are using, the browsers in which this occurs and whether the problem happens if you replace the RadComboBox with another AJAX control.

    Regards,
    Slav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top