我尝试使用UpdatePanel更新我的aspx页面的一部分,但它不起作用
这是aspx页面代码的一部分:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:CheckBox ID="cb1" name="cb1" runat="server" OnCheckedChanged="cb_test_CheckedChanged" AutoPostBack="true" /><label for="cb1"><%=DateTime.Now %></label>
</ContentTemplate>
</asp:UpdatePanel>
以下是代码的一部分:
protected void cb_test_CheckedChanged(object sender, EventArgs e)
{
UpdatePanel1.Update();
}
当我尝试点击复选框时,没有想到会发生在TextBox中。
注意:在浏览器中我有:
Error: Sys. WebForms. PageRequestManagerParserErrorException: impossible to analyze the message received from the waiter(server). This error can have several possible causes: answer modified by calls(appeals) to Response. Write (), leak out of answer, HttpModules or activation of track of the waiter(server). Details: error of analysis near '
答案 0 :(得分:0)
如果您将Checkbox置于更新面板之外,它将起作用,同时删除UpdatePanel1.Update();来自codebehind
Select COUNT(*)
From [WVODSFortius].[DimProductCategory] pc
Join [WVODSFortius].[DimProductCategoryItem] pci
On pc.ParentProductCategorySK = pci.ProductCategorySK -- 36,024
Join [WVODSFortius].[DimPackage] dp
On dp.PackageSK = pci.PackageSK -- 36,024
join [WVODSFortius].[DimPackageOption] ppo
On dp.PackageSK = ppo.PackageSK -- 40,797
join [WVODSFortius].[DimPackageOptionDetail] pod
On pod.PackageOptionSK = ppo.PackageOptionSK -- 238,776
join [WVODSFortius].[DimProductInventoryDetail] pid
On pid.ProductSK = pod.ProductSK -- 377,715
join [WVODSFortius].[FactOrders] fc
On pid.TenantSK = fc.TenantSK --- this is where i get Arithmetic overflow error
--Join [WVODSExigo].[DimCustomers] dc
--On fc.CustomerSK = dc.CustomerSK
--Join [WVODSExigo].[DimLanguages] dl
--On dl.LanguageSK = dc.LanguageSK
join [WVODSFortius].[FactProductTransactionDetail] ptd
On ptd.ProductCategorySK = pci.ProductCategorySK
join [WVODSFortius].[FactProductTransactionDetailExtended] ptde
On ptd.ProductTransactionDetailSK = ptde.ProductTransactionDetailSK