Appendix A. ASP.NET Syntax

This appendix reviews the overall syntax for using ASP.NET, including overall page structure, forms, database access and data binding, use of controls, and debugging. In many ways, an ASP.NET page is very similar to a traditional ASP page, with slight changes to accommodate the change from VBScript (or JScript) to Visual Basic or C#. For example:

<%@ Page Language="Visual Basic"%>
<html>
<head>
</head>
<body>
<%
Response.Write("Hello World")
%>
</body>

(The syntax is the same for C#, with a change in the Language parameter and a semicolon added to the Response.Write line.)

There are, of course, many more issues to consider.

Get ASP.NET by Example 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.