1. Home
  2. Computing & Technology
  3. Visual Basic

ASP.NET - Learn Programming for the Networked World - Part 2

By Dan Mabbutt, About.com

2 of 7

The Servier Side Processing Difference

The first thing to notice is another new attribute in the Web Form control tags: runat="server". This makes processing very different than events in traditional DHTML web pages. The main difference is that the event itself (for example, clicking a button) is separate from where the event is handled (a click event in VB.NET code on the server). In a traditional DHTML web page, an event is raised and handled using script code embedded in the HTML. But when you use ASP.NET, an event flagged with the runat="server" attribute is raised on the client but it's handled on the web server using VB.NET (or another .NET compatible language) code.

This critical difference allows separation of "logic" from "presentation". The fact that the programming code isn't mixed in with the HTML immediately makes programs easier to debug and understand.

With "old" ASP, the script code had to be placed where you wanted the output to appear. But another major benefit, especially for complex business applications, is that ASP.NET systems can be built by teams of specialists because the HTML presentation code can be created separately from the VB logic code. Designers can design and programmers can program in peace and harmony.

Index: ASP.NET - Learn Programming for the Networked World - Part 2

  1. Server Side Programming with ASP.NET
  2. The Servier Side Processing Difference
  3. Server Controls in ASP.NET
  4. The New ASP.NET Controls
  5. The Validator Controls
  6. The Page Object
  7. Developing with ASP.NET

2 of 7

Explore Visual Basic

More from About.com

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Learn ASP.NET
  6. ASP.NET - Learn Programming for the Networked World - Part 2

©2008 About.com, a part of The New York Times Company.

All rights reserved.