public bool isoffsetexist(int offset) { conn.Open(); SqlCommand cmd = new SqlCommand("select * from tb_offset where offset= " + offset + "", conn); SqlDataReader dr = cmd.ExecuteReader(); int i = 0; while (dr.Read()) { i++; } if (i == 1) { conn.Close(); return true; } else { conn.Close(); return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)