2 שאלות

udiko

New member
2 שאלות

1. איך אפשר לבצע RESIZE + דחיסה לקובץ JPEG כל הדוגמאות שמצאתי הם רק GetThumbnailImage ולא ניתן לבצע בהם דחיסה לקובץ 2. איך אני יכול להיות בטוח שאכן פקודת INSERT הצליחה? זה הקוד
sql = "insert into GalleryPics (PicCat) values (5)"; conn.Open(); OleDbDataAdapter da = new OleDbDataAdapter(); //Assign the connection & Create and execute the Insert Command da.InsertCommand = new OleDbCommand(sql,conn); try { da.InsertCommand.ExecuteNonQuery(); } catch { Label1.Text = "לא ניתן להוסיף רשומות !!!"; } //Create,assign and Execute the Identity statement da.SelectCommand = new OleDbCommand("SELECT @@IDENTITY", da.InsertCommand.Connection); int id = (int)da.SelectCommand.ExecuteScalar(); conn.Close();​
תודה
 

yuval k

New member
ExecuteNonQuery אמורה להחזיר את

מספר הרשומות שעודכנו...
 
למעלה