Hi!

I have added a imagebutton on to a usercontrol. Here is the formcode
HTML Code:
<div style="WIDTH: 1000px; HEIGHT: 55px">
		<table cellSpacing="3" cellPadding="3" width="1000" border="0">
			<!--DWLayoutTable-->
			<tr>
				<td vAlign="top" width="24" height="24"><IMG height="24" alt="Ny kontakt" src="Images/Ikoner/ny.gif" width="24"></td>
				<td vAlign="top" width="24"><a href="frmListContact.aspx"><IMG src="Images/Ikoner/Lista.gif" alt="Lista" width="24" height="24" border="0"></a></td>
				<td vAlign="top" width="24">
					<asp:ImageButton id="imgbSave" runat="server" ImageUrl="Images/Ikoner/Spara.gif"></asp:ImageButton></td>
				<td vAlign="top" width="24"><IMG height="24" alt="Ta bort" src="Images/Ikoner/radera.gif" width="24"></td>
				<td class="text" align="right" width="844">&nbsp;</td>
			</tr>
			<TR>
				<TD vAlign="top" bgColor="#000000" colSpan="5" height="1"></TD>
			</TR>
			<TR>
				<TD vAlign="top" bgColor="#ffffff" colSpan="5" height="1"><img src="Images/Ikoner/kundkort.gif" width="32" height="32" align="absMiddle">
					<strong class="text style1">KUNDKORT</strong></TD>
			</TR>
		</table>
	</div>
Here is the codebehind code
VB Code:
  1. Public Class ContactMenu
  2.     Inherits System.Web.UI.UserControl
  3.  
  4. #Region " Web Form Designer Generated Code "
  5.  
  6.     'This call is required by the Web Form Designer.
  7.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  8.  
  9.     End Sub
  10.     Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel
  11.     Protected WithEvents imgbSave As System.Web.UI.WebControls.ImageButton
  12.     'NOTE: The following placeholder declaration is required by the Web Form Designer.
  13.     'Do not delete or move it.
  14.     Private designerPlaceholderDeclaration As System.Object
  15.  
  16.     Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
  17.         'CODEGEN: This method call is required by the Web Form Designer
  18.         'Do not modify it using the code editor.
  19.         InitializeComponent()
  20.     End Sub
  21.  
  22. #End Region
  23.  
  24.     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  25.  
  26.     End Sub
  27.  
  28.     Public Sub imgbSave_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgbSave.Click
  29.  
  30.         Dim obj As Contactcard = New Contactcard
  31.         Dim I As Integer = obj.Save_Contact()
  32.         If I = 1 Then
  33.  
  34.         End If
  35.     End Sub
  36.  
  37. End Class

My problems is that the imgbSave_Click metod is not executed when i press the imagebutton.

What´s wrong?

/Tyson