【发布时间】:2010-01-05 18:19:31
【问题描述】:
我将用户控件动态添加到页面并尝试保存到视图状态 当我尝试将占位符保存到视图状态时出现此错误 " PlaceHolder 未标记为可序列化。"
这是我的代码
Controls_PriceControl ctrl = (Controls_PriceControl)LoadControl("../Controls/PriceControl.ascx");
plcPrices.Controls.Add(ctrl);
ViewState["plcPrices"] = plcPrices;
你能帮我解决这个问题吗?
谢谢!
【问题讨论】:
标签: c# user-controls viewstate