简体   繁体   中英

Adding Event Handler in ASP.NET

How to add event handler to image button in ASP.NET ? IS it possible to add event handler just like we do in WPF ? Help please .

The easy way: Just double click your image button.

The almost as easy way: Right click your image button, select Properties. From Properties click the lightning bolt icon at the top. Here you can access all your Events, double click the one you want to handle and it automatically creates an event handler method for you to customise.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM