将checkboxlist更改为visual studio中的radiobuttonlist

时间:2012-09-13 08:50:58

标签: c# asp.net

我确定这对某人来说很简单,我有一个asp:在visual studio 2010中创建的CheckBoxList我现在必须将它改为asp:RadioButtonList。但是我现在有错误消息

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

谢谢

1 个答案:

答案 0 :(得分:0)

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