I currently have a Gridview with checkboxes in each row and there is a button below the grid to export the checked items as a self-extracting *.exe file. This functionality was working fine...
I utilized the functionality in the 'First Look' example for my Gridview so whenever the paging buttons were used, the Loading image would appear etc. When I clicked the 'Export' button was clicked the grid would show the Loading image until the server request was finished and the following error would be displayed:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
I have attached my code from the aspx page for further inspection.
Thanks,
David
I utilized the functionality in the 'First Look' example for my Gridview so whenever the paging buttons were used, the Loading image would appear etc. When I clicked the 'Export' button was clicked the grid would show the Loading image until the server request was finished and the following error would be displayed:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
I have attached my code from the aspx page for further inspection.
<body> |
<form id="form1" runat="server"> |
<div> |
<cmis:CaseFilter ID="cfSearch" runat="server" /> |
<br /> |
</div> |
<div class="module" style="float:left;"> |
<pp:ObjectContainerDataSource ID="CrownBriefDataSource" runat="server" DataObjectTypeName="Ontario.Justice.CMIS.Business.Entities.CrownBrief" OnSelecting="DocumentsDataSource_Selecting" UsingServerPaging="true" /> |
<telerik:RadAjaxPanel ID="Radajaxpanel1" runat="server" LoadingPanelID="LoadingPanel2" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd"> |
<asp:Panel ID="Panel1" runat="server" Wrap="False" Width="516px"/> |
<br /> |
Select: <asp:LinkButton ID="CheckAll" runat="server" Text="All" OnClick="CheckAll_click" CssClass="SelectedItem" />, |
<asp:LinkButton ID="UncheckAll" runat="server" Text="None" OnClick="UncheckAll_click" CssClass="SelectedItem" /> |
<asp:GridView ID="GridViewExport" |
runat="server" |
AllowPaging="true" |
EnableViewState="True" |
AutoGenerateColumns="false" |
DataSourceID="CrownBriefDataSource" |
EmptyDataText="There are no records that match your search criteria." |
DataKeyNames="DocumentNumber" |
PageSize="11" |
OnDataBound="GridViewExport_DataBound" |
Width="90%" |
OnPageIndexChanging="GridViewExport_OnPageIndexChanging"> |
<Columns> |
<asp:TemplateField HeaderText="Select"> |
<ItemTemplate> |
<asp:CheckBox ID="chkSelect" runat="server" /> |
</ItemTemplate> |
<HeaderTemplate></HeaderTemplate> |
</asp:TemplateField> |
<asp:TemplateField HeaderText="Type"> |
<ItemStyle HorizontalAlign="Center" /> |
<HeaderStyle HorizontalAlign="Center"/> |
<ItemTemplate> |
<a class="info" href="#"><asp:image ImageAlign="Middle" runat="server" ImageUrl='<%# "~/images/" + GetStatusIcon(DataBinder.Eval(Container.DataItem, "ItemType").ToString())%>' id="imgStatus"></asp:image><span><%# GetApplication(Convert.ToInt32(Eval("Application")))%></span></a> |
</ItemTemplate> |
</asp:TemplateField> |
<asp:BoundField HeaderText="Last edited on" DataField="LastEditedDate" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="False" /> |
<asp:TemplateField HeaderText="Name"> |
<ItemStyle Width="350" /> |
<HeaderStyle HorizontalAlign="Left" Width="350" /> |
<ItemTemplate> |
<asp:LinkButton ID="SelectCase" CssClass="SelectedItem" runat="server" CommandArgument='<%# Eval("DocumentNumber") %>' OnClick="SelectFolder_Click" Text='<%# Eval("DocumentName") %>' Enabled='<%# IsDocument(DataBinder.Eval(Container.DataItem, "ItemType").ToString())%>' /> |
</ItemTemplate> |
</asp:TemplateField> |
<asp:BoundField HeaderText="Doc #" DataField="DocumentNumber"/> |
<asp:BoundField HeaderText="Jurisdiction" DataField="Jurisdiction_ID" /> |
<asp:BoundField HeaderText="Police Service" DataField="PoliceService"/> |
<asp:BoundField HeaderText="Police Case ID" DataField="PoliceCaseId" /> |
</Columns> |
</asp:GridView> |
<asp:Button ID="btnExport" runat="server" Text="Export" CssClass="exportCase" OnClick="btnExport_Click" /> |
</telerik:RadAjaxPanel> |
</div> |
<telerik:RadAjaxLoadingPanel ID="LoadingPanel2" runat="server" Transparency="30" BackColor="#E0E0E0"> |
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' style="margin-top: 40px;" /> |
</telerik:RadAjaxLoadingPanel> |
</form> |
</body> |
Thanks,
David