public DataSet getImage(int imageID, String companyID) { SqlConnection conn; StringBuilder sql; SqlDataAdapter da; DataSet image; conn = dbConn.GetConnection(); image = new DataSet(); sql = new StringBuilder(); sql.AppendLine("SELECT * FROM WP_advUploads"); sql.AppendLine("WHERE imageID=@imageID"); try { conn.Open(); da = new SqlDataAdapter(sql.ToString(), conn); da.Fill(image); } catch (Exception ex) { errMsg = ex.Message; } finally { conn.Close(); } return image; }
sql.AppendLine("SELECT * FROM WP_advUploads "); sql.AppendLine("WHERE imageID = " + imageID);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)