Chapter 18. ASP.NET Web Programming

WHAT YOU WILL LEARN IN THIS CHAPTER

  • 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

Windows Forms 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 that in which Windows applications are developed. 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 authentication, and how to read and write data to and from a database.

OVERVIEW OF WEB APPLICATIONS

A Web application causes a Web server to send HTML code to a client. That code is displayed in a Web browser such as Internet Explorer. When a user enters a URL string in the browser, ...

Get Beginning Visual C# 2010 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.