| Team-Fly | | | Visual Basic .NET Unleashed By Paul Kimmel | Table of Contents | | Chapter 8. Adding Events | Creating Event Handlers in the WebForms Designer WebForms are part of Visual Basic .NET. WebForms allow you to define ASP.NET-based applications similar to the way in which you would design Windows applications. The Form and Code designers for WebForms look and feel a lot like programming a Windows application. You create the application, paint controls on forms, and write VB code. When the application runs, users are served ASP.NET pages. From the developer's perspective, it's VB programming. From the user 's perspective, it's a great Web experience. Because creating Web applications in .NET is similar to creating Windows applications, the metaphors for creating event handlers are identical to those for creating event handlers for Windows applications. You can create event handlers from the Properties view, in the Code editor from the Objects and Procedures list, and manually with code. The namespaces for WebForms are different because the infrastructure is different. And, fewer events are available because events on a WebForm have to make a roundtrip to the server. A Web application would suffer if all the events available in a Windows application were available in a Web application. Chapter 23, "WebForms," demonstrates how to implement a WebForms-based application and define suitable event handlers for a WebForm. |