Bonjour
pour la 1ere erreur ==>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click Dim j As Integer j = 0 Dim rwh As GridViewRow rwh = GridView1.HeaderRow Dim DT As New System.Data.DataTable Dim req As String Dim MyConnection As OracleConnection Dim oradb As String = "Data Source=(DESCRIPTION=" _ + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.99.66)(PORT=1521)))" _ + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=AGR)));" _ + "User Id=agresso;Password=agresso;" MyConnection = New OracleConnection MyConnection.ConnectionString = oradb MyConnection.Open() For Each rw As GridViewRow In GridView1.Rows 'Response.Write(rw.RowIndex) For j = 1 To rw.Cells.Count - 1 'Response.Write("Site : " & rwh.Cells(j).Text & "|") 'Response.Write("Rayon : " & rw.Cells(0).Text & "|") 'Response.Write("Taux : " & rw.Cells(j).Text & "|") 'Response.Write(rw.Cells(0).Text & "|") ' Response.Write(GridView1.RowHeaderColumn( 'Response.Write(rw.RowIndex) If rwh.Cells(j).Text.StartsWith("F") Then Else req = "update interface.tauxprovtmp set taux=" & rw.Cells(j).Text & " where rayon like '" & rw.Cells(0).Text & "' and site_agresso like '" & rwh.Cells(j).Text & "' and societe='" & Session("client") & "' and type='COOP'" Dim cmdrayon As New OracleConnection(req, MyConnection) cmdrayon.ExecuteNonQuery() cmdrayon.Dispose() End If Next Next Label1.Visible = True Label1.Text = "Les Taux COOP ont été intégrés avec succès" End Sub
pour la 2eme erreur ==>Erreur 2 La résolution de surcharge a échoué, car aucun 'New' accessible n'accepte ce nombre d'arguments.
Mercii de M'aiderErreur 3 'ExecuteNonQuery' n'est pas un membre de 'System.Data.OracleClient.OracleConnection'.![]()
Partager