How to : respond to button events in data - bound controls 如何:响应数据绑定控件中的按钮事件
We need to add code for the button event of te01 input 我们需要为te01 _ input的按钮事件添加代码:
To add a default button event handler 添加默认按钮事件处理程序
In this example , a button - click event is used to show the dialog box 在下列示例中,单击按钮事件用于显示对话框:
To respond to button events in datalist , repeater , and gridview controls 响应datalist 、 repeater和gridview控件中的按钮事件
How to : respond to button events in datalist , repeater , or gridview items 如何:响应datalist 、 repeater或gridview项中的按钮事件
All these methods and constants should make responding to button events easier 所有这些方法和常量应该会使得对按钮事件做出响应更加容易。
For example , a button - click event and a menu - commandclick event can both invoke the same delegate , which then calls a single method to handle these separate events the same way 例如,单击按钮事件和单击菜单命令事件都能调用同一委托,然后该委托调用单个方法以相同方式处理各个事件。