Tan Kai Kai

Tan Kai Kai

  • NA
  • 114
  • 41.8k

Need help in this

Jul 11 2013 9:40 AM
 con.Open();
                dr = null;
                SqlCommand cmd = new SqlCommand("SELECT @@IDENTITY", con);
                dr = cmd.ExecuteReader();

                while (dr.Read())
                    try
                    {
                        {
                            LBL.Text = (dr["ID"].ToString());
           

                        }
                    }
                    I have an error in the red line say 
System.IndexOutOfRangeException: DeliveryID
I want to get the new database that just add in on to this page


Answers (15)