Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Here is an example; put your code inside that conn.open() and conn.close().Hope it works.conn.Open();SqlCommand cmd = new SqlCommand(@"select _regno from _registration", conn);SqlDataAdapter ada = new SqlDataAdapter(cmd);dt = new DataTable();ada.Fill(dt);conn.Close();
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.