1
我添加用户控件dynamcly到页面,并试图保存到视图状态 当我triyed将占位符保存到视图状态我得到这个错误 “PlaceHolder不标记为可序列化。保存加载用户控件动态视图状态
这里是我的代码
Controls_PriceControl ctrl = (Controls_PriceControl)LoadControl("../Controls/PriceControl.ascx");
plcPrices.Controls.Add(ctrl);
ViewState["plcPrices"] = plcPrices;
可以assiset我这个问题?
的感谢!