<asp:checkboxlist id="check1"  runat="server">
   
  <asp:ListItem>Cereal</asp:ListItem>
   <asp:ListItem>Eggs</asp:ListItem>
   <asp:ListItem>Pancake</asp:ListItem>
</asp:chekboxlist> **<asp:RadioButtonList id="radio1" runat="server">  
  <asp:ListItem id="option1" runat="server" value="Now"/>
   <asp:ListItem id="option2" runat="server" value="Later"/>
</asp:RadioButtonList>  
***<input type="Submit" value="Thank you!">
前面加**的是编译时显示红色部分。错误信息如下。System.Web.UI.WebControls.ListItemCollection 必须具有类型为“System.Web.UI.WebControls.ListItem”的项。“asp:RadioButtonList”的类型为“System.Web.UI.WebControls.RadioButtonList”。前面加***的是编译时显示红色部分。错误信息如下。未将对象引用设置到对象的实例。