15
Answers

Need help in this

Ask a question
Tan Kai Kai

Tan Kai Kai

11y
1.1k
1
 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)