עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה במחיקה ממסד - ASP.NET

Featured Replies

פורסם

הוא לא רושם שגיאה לא כלום, פשוט לא מוחק, מה רע בקוד הבא :


OleDbConnection Con3=new OleDbConnection();
Con3.ConnectionString=@"provider=microsoft.jet.oledb.4.0;data source="+Server.MapPath("")+"\\MyDB.mdb";

Con3.Open();
String sqlstring="DELETE FROM Soldiers WHERE MsID='"+usID.Text+"' AND MID='"+uID.Text+"'";
OleDbCommand Cmd=new OleDbCommand(sqlstring,Con3);

Con3.Close();

תודה על העזרה

פורסם

כי לא אמרת לאובייקט לבצע את פקודת הsql.

תוסיף לפני סגירת החיבור את השורה

cmd.ExecuteNonQuery()

ואז תסגור את החיבור.

לעוד מידע:

http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbcommand(VS.71).aspx

תראה למטה, יש טבלה עם שלושת הexecute, שבעזרתם אתה בעצם אומר לפקודה שלך לפעול.

פורסם
  • מחבר

איזה סטלן גמור אני חחח, תודה רבה :)

פורסם

למה אתה שומר את הID בתור טקסט? אתה בטוח שזה לא צריך להיות מספר?

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.