简体   繁体   English

ASP.NET-无法解析从服务器收到的消息

[英]ASP.NET - The message received from the server could not be parsed

I have aspxgridexporter and a button, when I click on the button it says: 我有aspxgridexporter和一个按钮,当我单击按钮时显示:

The message received from the server could not be parsed. 无法解析从服务器收到的消息。

I could not put Trigger it gives me an error saying the trigger is not found in update panel. 我无法将Trigger放进去,这给我一个错误,说在更新面板中找不到触发器。

this is my vb.net code and aspx code 这是我的vb.net代码和aspx代码

Dim options As DevExpress.XtraPrinting.XlsExportOptions = New DevExpress.XtraPrinting.XlsExportOptions()
options.SheetName = "grid"
cusgrdexport.WriteXlsToResponse(options)

this is a part aspx code 这是aspx代码的一部分

<asp:Button runat="server" ID="print"  text="printing" OnClick="print_Click" />
<dx:ASPxGridViewExporter ID="cusgrdexport" GridViewID="dgCustomer" ExportEmptyDetailGrid="True" FileName="Customers" runat="server"></dx:ASPxGridViewExporter>
<dx:ASPxGridView runat="server" KeyFieldName="Id" AutoGenerateColumns="False"  ID="dgCustomer" ClientInstanceName="customergrid" CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" Width="690px" Font-Names="Verdana" Font-Size="8pt">

I need a Solution Urgently, Please 我迫切需要一个解决方案

I Have Found the Answer for that 我已经找到了答案

Dim sm As ScriptManager = CType(Page.Master.FindControl("ScriptManager1"), ScriptManager)
        sm.RegisterPostBackControl(Button)

This will do it 这会做到的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决错误:无法解析从服务器收到的消息 - How to fix error: The message received from the server could not be parsed 下载Excel文件onclick,“无法解析从服务器收到的消息” - Download excel file onclick, “The message received from the server could not be parsed” Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息 - Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed 使用Server.Transfer进行重定向期间出错,无法解析从服务器收到的消息。 - Error during Redirection using Server.Transfer 'The message received from the server could not be parsed.' 显示pdf时出错:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息 - Error when displaying pdf: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed 在ajax请求上,我们收到此错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息 - On ajax request we get this error:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed 获取从发件人收到的消息到特定的 controller:MassTransit in ASP.NET Core Web API - Get the received message from the sender to a specific controller : MassTransit in ASP.NET Core Web API Asp.net MVC-从服务器推送延迟的客户端消息 - Asp.net MVC - Push a deferred client message from server 单声道找不到asp.net服务器 - mono could not find asp.net server 从 Angular 发送并在 ASP.NET 服务器中接收时,日期值会发生变化 - Date value changes when sent from angular and received in ASP.NET server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM