Hej!Vad är det för fel på min Imagebutton
Jag får inte min Inagebutton att fungera
Så här ser den ut på UserKontrollen
<code>
<td vAlign="top" width="24">
<asp:ImageButton id="imgbSave" runat="server" ImageUrl="Images/Ikoner/Spara.gif"></asp:ImageButton></td>
</code>
I codebehind
<code>
Public Class ContactMenu
Inherits System.Web.UI.UserControl
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel
Protected WithEvents imgbSave As System.Web.UI.WebControls.ImageButton
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Public Sub imgbSave_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgbSave.Click
Dim obj As Contactcard = New Contactcard
Dim I As Integer = obj.Save_Contact()
If I = 1 Then
End If
End Sub
End Class
</code>
Problemet är att min sub imgbSave_Click inte körs. KAn någon se var det felar. Formuläret är en usercontrol
/tyronne