21.4. Creating and Running a Simple Web-Form Example

Our first example displays the Web server’s time of day in a browser window. When run, this program displays the text A Simple Web Form Example, followed by the Web server’s time. As mentioned previously, the program consists of two related files—an ASPX file (Fig. 21.4) and a Visual Basic code-behind file (Fig. 21.5). We first display the markup, code and output, then we carefully guide you through the step-by-step process of creating this program. [Note: The markup in Fig. 21.4 and other ASPX file listings in this chapter is the same as the markup that appears in Visual Web Developer, but we have reformatted the markup for presentation purposes to make the code more readable.]

Figure 21.4. ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.