for insert image url and img_id to the database
//sqlcon-sql connection string
sqlcon.open();
SqlCommand command = new SqlCommand("insert into tbl_image1(img_path) values ('" + Image + "')", sqlcon);
//insert,delete and update sql queries use exeucutenonquery functions
command.ExecuteNonQuery();
sqlcon.Close();
No comments:
Post a Comment