Obout.com ComboBox“无法加载视图状态”错误
我刚刚下载了适用于 ASP.NET 3.5 和 4.0 的 Obout.com 套件控件。我这样做是因为我想要一个带有靠近项目的图像的下拉菜单。
它运行良好,但是,仍然在示例中,当您将 AutoPostBack 属性设置为 true,并从 ComboBox 控件中选择一个项目时,您会收到以下错误:
“无法加载视图状态。正在加载视图状态的控件树必须与先前请求期间用于保存视图状态的控件树匹配,例如,动态添加控件时,回发期间添加的控件必须与初始请求期间添加的控件的类型和位置匹配。”
我正在使用 VS2010 Ultimate Edition,
任何帮助将不胜感激!
I have just downloaded Obout.com suite controls for ASP.NET 3.5 and 4.0. I made this because I wanted a DropDown with images near items.
It is working well, but, still in the examples, when you set AutoPostBack property to true, and you select an item from the ComboBox controls you get the following error:
"Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request."
I'm using VS2010 Ultimate Edition,
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从未使用过该套件,但可以推荐一个不错的替代方案:
图像组合框 Jquery 插件。因此,您将能够使用标准 ASP.NET DropDownList 控件。
Never used that suite but can recommend a good alternative:
Image Combobox Jquery plugin. Thus you'll be able to use the standard ASP.NET DropDownList control.