绑定孔件到叶面!急!
Tmp.ICMethod cs=new Tmp.CMethod();
DataSet newDs=cs.PublicMethod("Common.Authentication.GetUserUnit",Session["user_id"].ToString(),";","ORACLE");
this.DataGrid1.DataSource=newDs;
this.DataGrid1.DataBind();
RadioButtonList rList=new RadioButtonList();
for(int i=0;i<newDs.Tables[0].Rows.Count;i++)
{
rList.Items.Add(newDs.Tables[0].Rows[i][1].ToString());
}
this.Page.Controls.Add(rList);
这是我的代码!运行之后提示如下错误还请大虾帮忙!
Control 'radio0' of type 'RadioButton' must be placed inside a form tag with runat=server.