Are declaring custom .NET event such as this, more common in a winform app than webform?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Custom events are probably a bit more rare in webforms compared to winforms, since http is stateless. So in many cases, a user action you want to react on, often come in form as a request, where you use the querystring parameters to determine what and how to react.
But i still find custom events very useful in my ascx usercontrols, because its an easy way to hide details about how the user control works internally, and just expose an event that the page can react on when interesting stuff happens.