Abstract
In this chapter, we explore the intricacies of working with server control events. The first part of this chapter is a general discussion of the .NET event architecture. We discuss how to add events to a control, bringing back our favorite TextBox control as part of the demonstration. Then, we illustrate how to define custom events and add them to yet another version of our famous TextBox. We also examine System. Web.UI. Control’s support for maintaining events. Next, we show how to initiate and capture a postback using a Button control that we create named Super Button. This section examines Command events and event bubbling with an example composite control to demonstrate these concepts. In the final portion of the chapter, we bring it all together with a discussion of the page life cycle, focusing on events. Let’s start with a quick overview of events and ASP.NET controls.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Rob Cameron, Dale Michalk
About this chapter
Cite this chapter
(2008). Server Control Events. In: Pro ASP.NET 3.5 Server Controls and AJAX Components. Apress. https://doi.org/10.1007/978-1-4302-0290-5_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0290-5_5
Publisher Name: Apress
Print ISBN: 978-1-59059-865-8
Online ISBN: 978-1-4302-0290-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books