الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

سؤال من امتحان مايكروسوفت ارجو الاجابة عليه

مغلق
بدأه MohEgy في 12 يونيو 2005 · 5 رد · 675 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

You use Visual Studio .NET to develop a Microsoft Windows-based application. Your application

contains a form named CustomerForm to enter time sheet entries for a law firm. At design time you set

the DataBindings properties of each TextBox control to the appropriate column in the DataTable object

of CustomerDataSet. When the application runs, users must be able to edit the information displayed in

the text boxes. All user changes must be saved to the appropriate database when saveButton is executed.

The event handler for btnSave includes the following code segment:

DataAdapter.Update(CustomerDataSet)

You application fails to work correctly. BtnSave fails to save any values edited in the text boxes.

You need to correct this problem.

What should your application do?

A. Call the InsertCommand method of the DataAdapter.

B. Before calling the Update method, ensure that a row position change occurs in

CustomerDataSet.

C. Reestablish the database connection by calling the Open method of the Connection.

D. CALL THE Update method of the DataAdapter and pass in the Connection.

#3

أعتقد أن الآجابة هي عمل open لل connection

أي رقم c

وذلك لأن أمر update الخاص بال adapter لن ينفذ الا بعد فتح الاتصال

#4

ولكن dataadapter يقوم بفتح connection تلقائيا

كذلك data adapter يقوم بأستدعاء command المناسب حسب datarowstate

#5

السلام عليكم

الإجابة إن شاء الله الصحيحية هي:

D. CALL THE Update method of the DataAdapter and pass in the Connection

لأن مصدر البيانات غير محدد في جملة التعديل في السؤال

والله الموفق،

البرمجه منطق وذوق وخدع .............والمعرفة طريق سهل وعذب

#6

ولكن constructor الخاص ب update method of dataAdapter لا يقبل connection . أي لا يجوز

DataAdapter.update(Dataset,Connection)

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…