In ASP.NET My button click event doesn`t work on first click. But it works on the second click only. I hope u can help me.
A:
You really need to post some code for us to be able to help you. One thought is that you may be re-binding your data, and invalidating your first request. Did you miss an if(!IsPostBack) { ... }
If that's not it, you do need to show us
- The code that assigns the event to a listener
- Any code that binds the button
- Any ASPX controls that contain the button (if it's in, say, a repeater)
David Hedlund
2010-09-14 09:15:09