.NET Events are more common in winform than webform?

Are declaring a custom .NET event like this more common in a winform application than webform?

0


source to share


2 answers


Custom events are probably a bit rare in web forms compared to winforms since http is not stateless. Thus, in many cases, the user action you want to respond to often comes in the form as a request, where you use the querystring parameters to determine what to respond and how.



But I still find that custom events are very useful in my ascx user settings because they are an easy way to hide the details of how user control works internally and just expose an event that this page can respond to when interesting stuff happens.

+1


source


A text search for the keyword event (note the space at the end) will give a good indication of the classes that provide custom events.



+1


source







All Articles