Buttons not "hearing" the clicks

  • Thread starter Thread starter K Viltersten
  • Start date Start date
K

K Viltersten

The following works fine doing exactly what is supposed.

<asp:LinkButton
id="id" runat="server" Text="Text">
</asp:LinkButton>

If i change it to the following, the callback method doesn't do what it
should. In fact, as far i can see, it's not even called since the break
point doesn't kick in!

<asp:Button
id="id" runat="server" Text="Text">
</asp:Button>

Where can i have missed something?
 
There are two ways to get the event working - if you're using VWD, click on
the linkbutton - in the properties window, choose events - then, in the
Click Event, assign the event handler you need

Or - you can also do it the way Mark mentioned

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup


The following works fine doing exactly what is supposed.

<asp:LinkButton
id="id" runat="server" Text="Text">
</asp:LinkButton>

If i change it to the following, the callback method doesn't do what it
should. In fact, as far i can see, it's not even called since the break
point doesn't kick in!

<asp:Button
id="id" runat="server" Text="Text">
</asp:Button>

Where can i have missed something?
 
Back
Top