Can OnCommand event be added on the server side?

  • Thread starter Thread starter needin4mation
  • Start date Start date
N

needin4mation

I have a single button. I want to change it's OnCommand. One moment
it may be Update, the next it may be New, etc.

I found btnMyButton.Command, but I cannot get it to work. The event
never fires. I have tried:

btnMyButton.Command+= new CommandEventHandler(Update);

(there is an Update function)

No error. It just doesn't fire the event. Thanks for any advice.
 
When are you setting the event handler? Everything looks fine. Try doing
it during Init
 

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

Back
Top