hello experts I have a listbox named LBFactSupNew and it is dynamically populated by this stored procedure listed below. now when I try to save the information to the data base while debugging line by line the selected value of the list box is comming up "" can some one tell me what the hell I am doing wrong???
private void PopulateNewFactSuper()
SqlConnection con = new SqlConnection(Settings.GetConfigValue("PARK_IRB_V1_11_19_2010", "IRB2010ConnectionString"));
SqlCommand cmd = new SqlCommand("P_sp_PopulateNewFactSup", con);
SqlDataReader r = cmd.ExecuteReader();
DataTable dt = new DataTable();
ListItem i = new ListItem(r["truename"].ToString().Trim(), r["ParkID"].ToString().Trim());