想
想飞8888
Unregistered / Unconfirmed
GUEST, unregistred user!
我在开发web程序时,在Page_Load中想动态创建CheckBox控件,结果发生错误,源程序如下,请帮忙解决。
private void Page_Load(object sender, System.EventArgs e)
{
CheckBox Chk = new CheckBox();
Chk.Attributes.Add( "SvrID",Iobj.ObjID.ToString() );
Chk.Checked = false;
Controls.Add( Chk );
}
private void Page_Load(object sender, System.EventArgs e)
{
CheckBox Chk = new CheckBox();
Chk.Attributes.Add( "SvrID",Iobj.ObjID.ToString() );
Chk.Checked = false;
Controls.Add( Chk );
}