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

Ajax Timeing out

3 Answers 79 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
James Lever
Top achievements
Rank 1
James Lever asked on 25 Nov 2008, 12:09 PM
Hi just working on an app diden't have this problem before but i've made afew changes and now it's timing out it there anyway to increase the time out?
sorry i'm not getting that i'm getting this Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
James

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Nov 2008, 12:16 PM
Hello James,

I'm not sure how to try this locally - can you reproduce this on some of our examples or can you send us an example where we can reproduce this?

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James Lever
Top achievements
Rank 1
answered on 25 Nov 2008, 12:38 PM
Sorry i fixed it myself i had put the ajax manager in and asp:panel that i was setting visable to false changed it and wokring find now (remember don't put ajax manager in somthing ur hiding lol)

James
0
chn
Top achievements
Rank 1
answered on 22 Jan 2009, 11:40 AM
I am facing the same prob

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Template22.master.cs" Inherits="Exensys.Web.UI.Template22" %>
<%@ Register Assembly="ExToolBarControl" Namespace="ExToolBarControl" TagPrefix="cc1" %>
<%@ Register Assembly="ExensysSummaryGrid" Namespace="ExensysSummaryGrid" TagPrefix="ExSummary" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>eXensys</title>
    <link href="/App_Themes/Template1Profile1/1024768.css" rel="stylesheet" type="text/css" id="myStyleSheet" runat="server"  />
</head>
<body id="MyBody" runat="server" style="margin-left:0;margin-right:0;margin-bottom:0;margin-top:0" class="DBbody" >
    <form id="form1" runat="server">
        <div style="display:none;">
            <asp:ScriptManager ID="ScriptManagerSuperTemplate" runat="server" EnablePageMethods="true">
                <Scripts>
                <asp:ScriptReference Path="~/Scripts/SummaryGrid.js" />
                <asp:ScriptReference Path="~/Scripts/Common.js" />
                </Scripts>
            </asp:ScriptManager>
        </div>
        <table cellpadding="0" cellspacing="0" border="0" style="height:100%; width:100%;">
            <tr id="trHeader" runat="server" style="height:3%;">
                <td>
                    <table id="tbTitle" cellpadding="0" cellspacing="0" style="width:100%">
                        <tr id="trTitle">
                            <td style="width:1%;"></td>
                            <td style="width:35%;">
                                <xns:ExensysLabel ID="lblDate" CssClass="datetime_username" runat="server"></xns:ExensysLabel>
                            </td>
                            <td style="width:6%;"></td>
                            <td style="width:2%;" align="left">
                                <XNS:ExensysImage  ID='ImgUser' title = "<%$Resources:eXensys.Architecture,ARCLoginUser%>" runat="server" ImageUrl="#" SkinID="UserIcon" BorderStyle="none"></XNS:ExensysImage>
                            </td>
                            <td style="width:22%;" align="left">                           
                                        <xns:ExensysLabel ID="lblTitle" CssClass="datetime_username" runat="server">
                                        </xns:ExensysLabel>                                
                            </td>                           
                            <td style="width:10%;" align="left"></td>
                            <td style="width:10%;" align="left"></td>
                <td style="width:200px;">
                 <table cellpadding="0" cellspacing="0" style="width:200px">
                  <tr>
                   <td style="width:16%;" align="center">
                 <XNS:ExensysImageButton ID='lnkPersonalize'  ImageUrl="#"  ToolTip= "Personalize" CssClass="hImagesStyle" runat="server"    SkinID="PersonalizeImg" BorderStyle="none"></XNS:ExensysImageButton>
                   </td>
                   <td id="tcHome" style="width:16%;" align="center">
                 <XNS:ExensysImageButton ID='hHome' title = "<%$Resources:eXensys.Architecture,ARCHome%>" ImageUrl="#"  runat="server" CssClass="hImagesStyle" SkinID="HomeIcon" BorderStyle="none"></XNS:ExensysImageButton></td>
                   <td id="tcView" style="width:16%;" align="center">
                    <XNS:ExensysImageButton ID='hView' title = "<%$Resources:eXensys.Architecture,ARClblView%>"  ImageUrl="#" runat="server" CssClass="hImagesStyle" SkinID="ViewIcon" BorderStyle="none"></XNS:ExensysImageButton>
                   </td>
                   <td id="tcOptions" width="16%" align="center">
                    <XNS:ExensysImageButton ID='hOptions' title="<%$Resources:eXensys.Architecture,ARCOptions%>"  ImageUrl="#" CssClass="hImagesStyle" SkinID="OptionsIcon"  runat="server" ></XNS:ExensysImageButton></td>
                   <td id="tcHelp" style="width:16%;" align="center">
                 <XNS:ExensysImageButton ID='hHelp' runat="server" title = "<%$Resources:eXensys.Architecture,ARCHelp%>"  ImageUrl="#" CssClass="hImagesStyle" SkinID="HelpIcon" BorderStyle="none"></XNS:ExensysImageButton></td>
                   <td id="tcLogout" style="width:16%;" align="center">
                    <XNS:ExensysImageButton id='hLogout' title = "<%$Resources:eXensys.Architecture,ARCLogout%>" runat="server"  ImageUrl="#" CssClass="hImagesStyle" SkinID="LogoutIcon"  BorderStyle="none"></XNS:ExensysImageButton>
                   </td>
                   <td style="width:4%;"></td>
               </tr>
                 </table>
                </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="height:2%;">
                <td class="tdYGToolBar">
                    <table cellpadding="0" cellspacing="0" width="100%" >
                        <tr>
                            <td style="width:70%;" align="center">&nbsp;&nbsp;
                                <xns:ExensysLabel ID="Label1" CssClass="lblYGTitle" runat="server" Width="60%" ForeColor="WhiteSmoke" ></xns:ExensysLabel>
                            </td>
                            <td id="tcJumpCode1" style="width:8%;">
                                <xns:ExensysLabel ID="lblJump" CssClass="lblYGTitle" runat="server" Width="100%" ForeColor="WhiteSmoke" Text="<%$Resources:eXensys.Architecture,ARCJumpCode%>"></xns:ExensysLabel></td>
                            <td id="tcJumpCode2" style="width:15%;">
                                <XNS:ExensysTextBox ID="txtJump"  CssClass="WaterMarkStyle" runat="server"  WaterMarkText="Enter Jump code" InRowTemplate="false">
                                <FocusStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" BackColor="Yellow" ForeColor="Black" Font-Bold="true" Font-Names="Verdana" ></FocusStyle>
                                </XNS:ExensysTextBox>
                            </td>
                            <td id="tcEmpty2" style="width:1%;">&nbsp;</td>
                            <td id="tcJumpCode3" style="width:5%;" >
                                <XNS:ExensysButton  ID="btnJump" CssClass="ButtonYGStyle" runat="server"  Width="100%"  Text="Go"/>
                            </td>
                            <td style="width:1%;"></td>
                        </tr>
                   </table>
                </td>
            </tr>
            <tr style="height:2%;">
          <td  valign="top" align="left" >
           <asp:UpdatePanel ID="upToolBar" runat="server" UpdateMode="Conditional" >
               <ContentTemplate>
             <cc1:ExToolBar   ID="tbrMain" runat="server"></cc1:ExToolBar>
         </ContentTemplate>
           <Triggers>
                      <%--<asp:AsyncPostBackTrigger ControlID="SummaryGrid" EventName="DblClick" />   --%>                                                                                                                                        
                         <asp:AsyncPostBackTrigger ControlID="btnGo" EventName="Click" />
                         <asp:AsyncPostBackTrigger ControlID="btnViewGo" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="ddlGroupBy" EventName="SelectedIndexChanged" />
                         <asp:AsyncPostBackTrigger ControlID="btnAdvSearch" EventName="Click" />
                          <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />                                                                                                                                   </Triggers>
        </asp:UpdatePanel>
       </td>
      </tr>
      <tr  id="trSearchBarrow" runat="server" style="height:2%;" valign="top">                                                                                       
             <td valign="top" align="left">
              <table cellpadding="0"  cellspacing="0" style="width:100%">
               <tr valign="top">
                <td style="width:2%" valign="top">
             </td>                                                                                                  
             <td  valign="top" style="width:96%">
                 <asp:UpdatePanel ID="upSearchRow" runat="server" UpdateMode="Conditional">
                  <ContentTemplate>
                   <table border="0" cellspacing="0" style="width:100%;height:100%">                                                                                                                     
                    <tr style="width:100%">
                     <td style="width:5%">
                      <xns:ExensysLabel ID="lblFind" runat="server" Text="Find" CssClass="labelstyle"></xns:ExensysLabel>
                  </td>
                  <td style="width:8%">
                      <XNS:ExensysTextBox ID="txtFind" runat="server" CssClass="textboxstyle" InRowTemplate="false">
                      <FocusStyle HorizontalAlign="NotSet" VerticalAlign="NotSet" BackColor="Yellow" ForeColor="Black" Font-Bold="true" Font-Names="Verdana" ></FocusStyle>
                      </XNS:ExensysTextBox>
                  </td>
                                                <td style="width:1%">
                  </td>
                  <td style="width:4%">
                         <XNS:ExensysButton ID="btnGo" runat="server" Text="GO" CssClass="ButtonYGStyle" />
                  </td>
                  <td style="width:1%">
                  </td>
                  <td style="width:5%">
                      <xns:ExensysLabel ID="lblView" runat="server" Text="View" CssClass="labelstyle"></xns:ExensysLabel>
                  </td>
                  <td style="width:12%">
                      <XNS:ExensysDropDown ID="ddlView" runat="server" Width="100%" CssClass="DropDownListStyle">
                   </XNS:ExensysDropDown>
                  </td>
                  <td style="width:1%">
                     </td>
                        <td style="width:4%">
                      <XNS:ExensysButton ID="btnViewGo" runat="server" Text="GO" CssClass="ButtonYGStyle"/>
                  </td>
                  <td style="width:2%">
                  </td>
                  <td style="width:9%">
                   <XNS:ExensysButton ID="btnSearch" runat="server" Text="Search" CssClass="ButtonSearchYGStyle"/>
                  </td>
                  <td style="width:2%">
                  </td>
                  <td style="width:13%">
                   <XNS:ExensysButton ID="btnAdvSearch" runat="server" Text="Adv. Search" CssClass="ButtonSearchYGStyle"/>
                  </td>
                  <td style="width:2%">
                  </td>
                  <td style="width:15%">
                      <XNS:ExensysDropDown ID="ddlGroupBy" runat="server" Width="100%" CssClass="DropDownListStyle"
                       AutoPostBack="true">
                   </XNS:ExensysDropDown>
                  </td>
                  <td style="width:2%">
                  </td>
                  <td style="width:3%" >
                      <a id="hCheck" class="labelstyle" href="#" style="text-decoration: none;" runat="server"
                       onclick="return ShowCheckMenu()"><XNS:ExensysImage ID='imgSelect' SkinID="ViewIcon" runat="server"></XNS:ExensysImage></a>
                  </td>
                                                <td style="width: 10%">
                                                    <table>
                                                        <tr>
                                                            <td style="width: 2%">
                                                                <XNS:ExensysImageButton ID='ibtnFirst' ImageUrl="~/Images/Common/imgFirst.png" runat="server"
                                                                    OnClientClick="return CheckRecExists(this);"></XNS:ExensysImageButton>
                                                            </td>
                                                            <td style="width: 2%">
                                                                <XNS:ExensysImageButton ID='ibtnPrev' ImageUrl="~/Images/Common/imgPrevious.png" runat="server"
                                                                    OnClientClick="return CheckRecExists(this);"></XNS:ExensysImageButton>
                                                            </td>
                                                            <td style="width: 2%">
                                                                <XNS:ExensysImageButton ID='ibtnNext' ImageUrl="~/Images/Common/imgNext.png" runat="server"
                                                                    OnClientClick="return CheckRecExists(this);"></XNS:ExensysImageButton>
                                                            </td>
                                                            <td style="width: 2%">
                                                                <XNS:ExensysImageButton ID='ibtnLast' ImageUrl="~/Images/Common/imgLast.png" runat="server"
                                                                    OnClientClick="return CheckRecExists(this);"></XNS:ExensysImageButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                 </tr>
                </table>                                                                                                                                                                                                                           
               </ContentTemplate>
              </asp:UpdatePanel>                                                                                                                                                                                                           
             </td>
             <td  valign="top" style="width:2%">
             </td>
                        </tr>
           </table>                                                                                                                                                                                   
          </td>                                                                                       
         </tr> 
            <tr style="height:91%;">
                <td>
                    <asp:UpdatePanel ID="upDerived" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <table cellpadding="0" cellspacing="0" style="width:100%; height:100%;">
                                <tr id="trSummaryGridRow" runat="server" style="background-color:Aqua;">
                                    <td>
                                        <table  border="1" style="width:100%;height:100%" cellpadding="0" cellspacing="0">
              <tr style="height:99%;width:100%">
               <td style="width:100%">
                <%--Summarygrid--%>
               <ExSummary:SummaryGrid ID="SummaryGrid" SkinID="ExensysSummary" runat="server"  BorderStyle="Solid" ShowHeader="true" ShowFooter="true" Height="100%" Width="100%" >
               <Columns>
               <asp:BoundField  DataField="COLUMN001" HeaderText="COLUMN001"/>
               <asp:BoundField  DataField="COLUMN002" HeaderText="COLUMN002"/>
               <asp:BoundField  DataField="COLUMN003" HeaderText="COLUMN003"/>
               <asp:BoundField  DataField="COLUMN004" HeaderText="COLUMN004"/>
               <asp:BoundField  DataField="COLUMN005" HeaderText="COLUMN005"/>
               <asp:BoundField  DataField="COLUMN009" HeaderText="COLUMN009"/>
               <asp:BoundField  DataField="COLUMN024" HeaderText="COLUMN024"/>
               </Columns>
               </ExSummary:SummaryGrid>
               </td>
              </tr>
                 <tr style="height:1%;width:100%">
               <td style="width:100%">
               
                <xns:ExensysLabel id="lblCustomPaging" Width="100%" CssClass="GridCustomPagingLabel" runat="server">
                </xns:ExensysLabel>
                <%-- mbrContext  --%>
                <%--SummaryGridExcelExporter--%>
               </td>
                 </tr>
             </table>
                                    </td>
                                </tr>
                                <tr id="trDerivedRow" runat="server" style="background-color:Lime;">
                                    <td>
                                        <div>
                                            <asp:ContentPlaceHolder ID="cplhMain" runat="server">
                                            </asp:ContentPlaceHolder>
                                        </div>
                                    </td>
                                </tr>
                                <tr id="trDefaultRow" runat="server">
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr style="height:2%;vertical-align:top;">
                <td>
                    <asp:UpdatePanel ID="upStatusBar" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <table id="tbSBInnerTable" class="StatusBarStyle" cellpadding='0' cellspacing="0" style=" height:100%;width:100%" runat="server">
                                <tr id="trSBInnerRow" runat="server" >
                                    <td id="tcImgAlert" class="StatusBarCellStyle" style="width:16%" align="left"  runat="server">
                                        <table style="width:100%;" id="tcModeMsg" runat="server" nowrap="nowrap">
                                            <tr valign="bottom">
                                                <td id="tcMsgIcon" align="left" valign="middle"  style="width:2px">
                                                <XNS:ExensysImage ID="imgSBAlert"  ImageUrl="~/Images/StatusBar/default-mode.png" runat="server" /></td>
                                                <td id="tcUserMsg" runat="server" align="left" nowrap="nowrap" valign="middle" class="StatusBarStyle"></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td id="tcNavigationUrl" class="StatusBarCellStyle" style="width:40%" runat="server" nowrap="nowrap" onmouseover="ShowToolTip(this.id,'tableCell');" onmouseout="HideToolTip();">&nbsp;
                                    </td>
                                    <td id="tcLastUpdate" class="StatusBarCellStyle" style="width:14%" runat="server" >&nbsp;
                                    </td>
                                    <td id="tcLastUpdatedUser" class="StatusBarCellStyle" style="width:15%" runat="server">&nbsp;
                                    </td>
                                    <td id="tcLastUpdatedDate" class="StatusBarCellStyle" style="width:15%" runat="server">&nbsp;
                                    </td>
                                </tr>
                            </table>
                            <div style="display:none">
                                <script language="javascript" type="text/javascript">
                                  // window.onload = eXensysLoad;
                                  function eXensysLoad() {
                                  }

                                  function Body_OnUnload() {
                                  }

                                  window.onbeforeunload = Body_OnBeforeUnload;

                                  function Body_OnBeforeUnload() {
                                      if (event.clientY < 0) {
                                          return '';
                                      }
                                  }
                                  //document.oncontextmenu = DisableRightclick;
                                  function DisableRightclick() {
                                      return false;
                                  }
                               </script>
                             </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

this is my code can u please tell me the solution

thanks
Tags
Ajax
Asked by
James Lever
Top achievements
Rank 1
Answers by
Vlad
Telerik team
James Lever
Top achievements
Rank 1
chn
Top achievements
Rank 1
Share this question
or