oki merci , j'ai utilisé la méthode de bossum pour le VB, mais j'obtiens une erreur. les codes sont maintenant:
essai.aspx :
BD_connexion.vb :
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 <%@ Page Language="vb" Src="BD_connexion.vb" AutoEventWireup="true" Inherits="MyListBox" %> <script language="vbscript" runat="server"> AddHandler ffoei.Click,addressof MyListBox.NameChange </script> <body> <form id="Form1" method="post" runat="server"> <asp:Button id="ffoei" Text="Essai" runat="server"></asp:button> <asp:label id="koin" runat="server"></asp:label> </form> </body> </html> </head>
il me met comme erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Imports System.Data Public Class MyListBox Inherits System.Web.UI.Page public Sub NameChange(ByVal sender As Object, ByVal e As System.EventArgs) Dim koin as Label koin.text="koin" End Sub End Class
[FONT=Arial]Syntax error [/FONT]
[FONT=Arial]a la ligne : AddHandler ffoei.Click,addressof MyListBox.NameChange[/FONT]
je vois pas mon erreur.
Erf je ne comprend pas![]()
Partager