Chapter 19

ASP.NET Web Programming


  • An overview of ASP.NET development
  • How to use ASP.NET server controls
  • How to send an ASP.NET postback to different pages
  • How to create ASP.NET Ajax postbacks
  • How to validate user input
  • How to manage state
  • How to add styles to a web page
  • How to use master pages
  • How to implement page navigation
  • How to authenticate and authorize users
  • How to read from and write to SQL Server databases


The code downloads for this chapter are found at on the Download Code tab. The code is in the Chapter 19 download and individually named according to the names throughout the chapter.

Windows Presentation Foundation is the technology for writing Windows applications; with ASP.NET you can build web applications that are displayed in any browser. ASP.NET enables you to write web applications in a similar way to Windows applications. This is made possible by server-side controls that abstract the HTML code and mimic the behavior of the Windows controls. Of course, there are still many differences between Windows and web applications because of the underlying technologies — HTTP and HTML — on which web applications are based.

This chapter provides an overview of programming web applications with ASP.NET, how to use web controls, how to deal with state management (which is very different from how it’s handled in Windows applications), how to perform ...

Get Beginning Visual C# 2012 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.