private void BindItemID()
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mydb"].ConnectionString);
con.Open();
SqlCommand cmd = new SqlCommand("Select ItemID from Item", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
txtItemID.Text = dt.ToString();
txtCode.DataBind();
}