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

C# ASP.NET-无法分析从服务器收到的消息,c#,asp.net,ajax,vb.net,devexpress,C#,Asp.net,Ajax,Vb.net,Devexpress,我有一个aspxgridexporter和一个按钮,当我点击按钮时,它会显示: 无法分析从服务器收到的消息 我无法放置触发器。它给我一个错误,说在更新面板中找不到触发器 这是我的vb.net代码和aspx代码 Dim options As DevExpress.XtraPrinting.XlsExportOptions = New DevExpress.XtraPrinting.XlsExportOptions() options.SheetName = "grid" cusgrdexport.

我有一个aspxgridexporter和一个按钮,当我点击按钮时,它会显示:

无法分析从服务器收到的消息

我无法放置触发器。它给我一个错误,说在更新面板中找不到触发器

这是我的vb.net代码和aspx代码

Dim options As DevExpress.XtraPrinting.XlsExportOptions = New DevExpress.XtraPrinting.XlsExportOptions()
options.SheetName = "grid"
cusgrdexport.WriteXlsToResponse(options)
<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">
这是aspx代码的一部分

Dim options As DevExpress.XtraPrinting.XlsExportOptions = New DevExpress.XtraPrinting.XlsExportOptions()
options.SheetName = "grid"
cusgrdexport.WriteXlsToResponse(options)
<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">


我急需一个解决方案,请

我已经找到了答案

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

这样就可以了

因为2天的规定,我不能接受。网站不会让我,但它的工作