洋洋 · 2005-01-13 02:59:09 · 阅读: 471 问个C#问题: DropDownList ddl; ddl = (DropDownList)(e.Item.Cells[5].Controls[0].FindControl("ddlsIDType")); DataSet ds = new tUserAccountsSystem().GetsIDType(); ddl.DataSource = ds.Tables[0]; 报错:未将对象引用设置到对象的实例。 调试ddl是未定义