akaikini
Dec 30 2005 12:10 PM
|
I am new to building applications. I get an
"Object reference not set to an instance of an object"
with specific code
:
Line 13:
Line 14: public static void FillDropDown(DropDownList ddl, DataTable tbl, string strDataTextField, string strDataValueField) {
Line 15: ddl.DataSource = tbl;
Line 16: ddl.DataTextField = strDataTextField;
Line 17: ddl.DataValueField = strDataValueField;
What is the best way to locate and fix the problem? |