Buttons not "hearing" the clicks

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?
 
D

David Wier

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top