0

我确定这对某人来说很简单,我在 Visual Studio 2010 中创建了一个 asp:CheckBoxList 我现在不得不将它更改为一个 asp:RadioButtonList。但是我现在有错误消息

运行时错误:基类包含字段'q3',但其类型(System.Web.UI.WebControls.CheckBoxList)与控件类型(System.Web.UI.WebControls.RadioButtonList)不兼容

谢谢

4

1 回答 1

0

您也可以在 CheckBoxList 的 codeBehind 中更改类型声明。

于 2012-09-13T09:02:12.933 回答