14.6. Exercises

  1. Imagine you have a simple Web Form with a single Button on it. If you click the Button in the browser, it causes a postback and at the server its Click event is triggered. What happens first? The Page control's Load event or the Button control's Click event?

  2. The GridView allows you to alternate colors (and other style information) for the rows it displays. How would you set up the GridView so it alternates between rows with a black background and white text and rows with a white background and black text?

  3. What's the proper way to avoid an exception that you handled in a data-bound control's event in the Code Behind from being displayed in the page?

Get Beginning ASP.NET 3.5: In C# and VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.