Can OnCommand event be added on the server side?

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.
 
K

Karl Seguin

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top