PDA

View Full Version : Are we able to bind a method to a button.


jacksonpd
08-16-2005, 01:50 AM
I was wondering if it possible to bind a method to a button using
the web bindings?

This would eliminate the need to create an onclick handler and remove even more code from the code behind file.

Aleks Seovic
08-18-2005, 07:27 AM
It's not right now, and I'm not sure that it should be. I believe that data binding should to only one thing, which is data synchronization between data model and the UI.

Hooking up OnClick event is trivial and is pretty much the standard. I really don't see anything wrong with it...

Regards,

Aleks