Skip to main content
  • 268 Accesses

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 to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics