Chapter 18

Web Programming

What you will learn in this chapter:

  • What a web page is and how it works
  • The relationship between the client and web server
  • The difference between static and dynamic web pages
  • How to use C# with web pages
  • How to write a simple dynamic web page code downloads for this chapter

You can find the code downloads for this chapter at on the Download Code tab. The code in the Chapter17 folder is individually named according to the names throughout the chapter.

This chapter discusses how to use C# for programming web applications. There is no way that you can do justice to web programming in a single chapter. Indeed, there are hundreds of books devoted to just web programming. Instead, the goal here is to give you background information so that you understand the paradigm involved with programming for the web. After that, if you want to become more involved with web programming, there are a number of Wrox publications that can help you master the web.

Before you begin programming your first Internet web page, you need to understand the basics of how web pages are written and displayed on your browser.

Static Web Pages

Whenever you load your web browser and it displays an Internet page, whatever you see displayed on the monitor was constructed from a Hypertext Markup Language (HTML) script. A static web page is a page whose content never changes. Because the content never changes, the page always looks ...

Get Beginning Object-Oriented Programming with C# now with O’Reilly online learning.

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