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

ايرور عند الاضافة في الداتابيس

بدأه أشواك ناعمة في 4 مايو 2010 · 1 رد · 467 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

هذا الايرور يطلع لي

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30516: Overload resolution failed because no accessible 'Update' accepts this number of arguments.

Source Error:

Line 1742: Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _

Line 1743: Public Overloads Overridable Function Update(ByVal Doc_File_Url As String, ByVal Doc_Image_Url As String, ByVal Original_Doc_Title As String) As Integer

Line 1744: Return Me.Update(Original_Doc_Title, Doc_File_Url, Doc_Image_Url, Original_Doc_Title)

Line 1745: End Function

Line 1746: End Class

Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\almahmood_web\7fdd3de5\a310aadb\App_Code.tbv21poa.1.vb Line: 1744

هذا الكود

Dim myBAdapter As New DataSet2TableAdapters.BooksTableAdapter()

If UploadTest.HasFile = False Or FileUpload1.HasFile = False Then

' No file uploaded!

UploadDetails.Text = "Please first select a file to upload..."

Else

' Display the uploaded file's details

Label1.Text = String.Format( _

"Uploaded file: {0}<br />" & _

"File size (in bytes): {1:N0}<br />" & _

"Content-type: {2}", _

FileUpload1.FileName, _

FileUpload1.FileBytes.Length, _

FileUpload1.PostedFile.ContentType)

UploadDetails.Text = String.Format( _

"Uploaded file: {0}<br />" & _

"File size (in bytes): {1:N0}<br />" & _

"Content-type: {2}", _

UploadTest.FileName, _

UploadTest.FileBytes.Length, _

UploadTest.PostedFile.ContentType)

' Save the file

Dim filePath1 As String = _

Server.MapPath("~/files/" & FileUpload1.FileName)

Dim filePath2 As String = _

Server.MapPath("~/files/" & UploadTest.FileName)

FileUpload1.SaveAs(filePath1)

UploadTest.SaveAs(filePath2)

myBAdapter.Insert(TextBox1.Text, TextBox2.Text, filePath1, filePath2)

End If

عندي 2 داتاست لجدولين

#2

لقد حللت المشكلة

شكرا

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