DataList RadioButtonList 控件绑定在vs2003测试通过,但在vs2008且绑定不了值(显示不出来)
代码如下:private void DataList5_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.EditItem)
            {
                Label c1 = (Label)e.Item.FindControl("dd1");
                Label c2 = (Label)e.Item.FindControl("dd2");
                RadioButtonList rbt = (RadioButtonList)e.Item.FindControl("RadioButtonList3");
                string[] s = { c1.Text + "胜", c2.Text + "胜", "平局" };
                rbt.DataSource = s;
                rbt.DataBind();
            }
        }
帮忙看看,是什么原因?