[英]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.