开发者

Problem with Ajax [SYS.webforms.pagerequestmanagerserver exception]

I'm new in web development, I have a problem in a web application after deployment (it's not appeared in my development machine), The deployment machine [Wind Server 2003 x64, IIS 6]

The error in IE after enable the debug mode:

SYS.webforms.pagerequestmanagerserver error exception has been thrown
by the target of an invocation.  //scriptresource.axd

The error is shown when an Ajax ModalPopupExtender is opened. I replaced the popup with a simpleModal [JQuery], the exception is still appeared.

Inside the popup there's a user control and inside the user control there's a RadGrid from telerik contains a RadAsyncUpload in a GridTemplateColumn

Edit: When I put the user control out of the popup, no exceptions.

Edit: The scripts which inside the user control:

          <asp:UpdatePanel ID="attachmentUpdate" runat="server" UpdateMode="Always" >
                <ContentTemplate >

                   <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                       <script type="text/javascript">
                           var uploadedFilesCount = 0;
                           var isEditMode;
                           function validateRadUpload(source, e) {
                               // When the RadGrid is in Edit mode the user is not obliged to upload file.
                               if (isEditMode == null || isEditMode == undefined) {
                                   e.IsValid = false;
                                   if (uploadedFilesCount > 0) 
                                       e.IsValid = true;
                               }
                               isEditMode = null;
                           }

                           function OnClientFileUploaded(sender, eventArgs) {
                               uploadedFilesCount++;
                           }

                           function OnClientDeleting(sender, everntArgs) {
                               uploadedFilesCount--;
                           }

                           function RowCreated(sender, args) {
                               var RadGrid = $find("<%=RadGrid1.ClientID %>");

                               if (RadGrid.get_masterTableView().get_isItemInserted())
                                   uploadedFilesCount = 0开发者_Python百科;

                               // to ignore the file in edit mode ...
                               if (RadGrid._editIndexes.length > 0) // in edit mode
                                   uploadedFilesCount = 1;
                           }

                       </script>
                    </telerik:RadCodeBlock>         

kindly ask me for any extra information

Thanks in advance


Try setting UpdateMode="Conditional" on your UpdatePanel.


This is a very broad type of exception. I suggest you to look at the EventLog first. Since the solution is running in Debug mode there should be a call stack available (among with the inner exception which describes the actual error) which might help to identify the root of the problem.

-- Pavel


You can use RadWindow for the pop up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜