ext:Button not trigering onclick event

Apr 29, 2010 at 7:19 PM

I am not sure if the event is not being fired, the control event is not being wired up to the handler or what the deal is but I have a FormView:

<asp:FormView id="FormView1" runat="server">
  <ItemTemplate>
     <ext:Button ID="button1" runat="server" Text="Click me" OnClick="button1_Click"/>
  <ItemTemplate>
</asp:FormView>

and in the code behind:

protected void button1_Click(object sender, EventArgs e)
{
   //After the button is click the code in here is not executed
}

Am I doing something wrong? Should I be using ext:Form instead of asp:FormView?

Miguel.

Apr 29, 2010 at 7:20 PM

Oh the weird thing is that if I change the ext:Button to ext:LinkButton it works fine.