Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PicAdap As New DataSet1TableAdapters.PicturesTableAdapter()
If UploadTest.HasFile = False Then
' No file uploaded!
UploadDetails.Text = "Please first select a file to upload..."
Else
' Display the uploaded file's details
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 filePath As String = _
Server.MapPath("~/files/" & UploadTest.FileName)
PicAdap.InsertPictures(TextBox1.Text, filePath, TextBox2.Text, DropDownList1.SelectedIndex)
UploadTest.SaveAs(filePath)
End If
End Subيطلع لي ايرور
too many arguments 'Public Overridable Function InsertPictures() As Object
استخدمت الداتاسيت
+ الداتابيس اكسس
فيها 4 فيلدز
3 text
و 1 number
يا ترى وش سبب الايرور
