Preface
Web development is very exciting. Theres nothing like the feeling you have after
you place your first dynamic web site online, and see your little toy in action
while other people are actually using it!
Web development with ASP.NET is particularly exciting. If youve never created
a dynamic web site before, Im sure youll fall in love with this area of web devel-
opment. If youve worked with other server-side technologies, I expect youll be
a little shocked by the differences.
ASP.NET really is a unique technology, and it provides new and extremely effi-
cient ways to create web applications using the programming language with which
you feel most comfortable. Though it can take some time to learn, ASP.NET is
simple to use. Whether you want to create simple web forms, or feature-rich
shopping carts, or even complex enterprise applications, ASP.NET can help you
do it. All the tools youll need to get up and running are immediately available
and easy to install, and require very little initial configuration.
This book will be your gentle introduction to the wonderful world of ASP.NET,
teaching you the foundations step by step. First, youll learn the theory; then,
youll put it in practice as we work through practical exercises together. To
demonstrate some of the more complex functionality, and to put the theory into
a cohesive, realistic context, well develop a project through the course of this
book. The projectan intranet site for a company named Dorknozzlewill allow
us to see the many components of .NET in action, and to understand through
practice exactly how .NET works in the real world.
We hope youll find reading this book an enjoyable experience that will signific-
antly help you with your future web development projects!
Who Should Read this Book?
This book is aimed at beginner, intermediate, and advanced web designers looking
to make the leap into server-side programming with ASP.NET. We expect that
youll already feel comfortable with HTML and a little CSS, as very little explan-
ation of these topics is provided here.
By the end of this book, you should be able to successfully download and install
ASP.NET and the .NET Framework, configure and start your web server, create
and work with basic ASP.NET pages, install and run SQL Server 2005, create
database tables, and work with advanced, dynamic ASP.NET pages that query,
insert, update, and delete information within a database.
All examples provided in the book are written in both Visual Basic and C#, the
two most popular languages for creating ASP.NET web sites. The examples start
at beginners level and proceed to more advanced levels. As such, no prior
knowledge of either language is required in order to read, understand, learn from,
and apply the knowledge provided in this book. Experience with other program-
ming or scripting languages (such as JavaScript) will certainly grease the wheels,
though, and should enable you to grasp fundamental programming concepts more
quickly.
Whats in this Book?
This book comprises the following chapters. Read them from beginning to end
to gain a complete understanding of the subject, or skip around if you feel you
need a refresher on a particular topic.
Chapter 1: Introducing ASP.NET
Before you can start building your database-driven web presence, you must
ensure that you have the right tools for the job. In this first chapter, youll
learn how to find, download, and configure the .NET Framework. Youll learn
where the web server is located, and how to install and configure it. Next,
well walk through the installation of the Microsoft database solution: SQL
Server 2005. Finally, well create a simple ASP.NET page to make sure that
everythings running and properly configured.
Chapter 2: ASP.NET Basics
In this chapter, youll create your first useful ASP.NET page. Well explore
all of the components that make up a typical ASP.NET page, including dir-
ectives, controls, and code. Then, well walk through the process of deploy-
ment, focusing specifically on allowing the user to view the processing of a
simple ASP.NET page through a web browser.
Chapter 3: VB and C# Programming Basics
In this chapter, well look at two of the programming languages that are used
to create ASP.NET pages: VB and C#. Youll learn about the syntax of the
two languages as we explore the concepts of variables, data types, conditionals,
loops, arrays, functions, and more. Finally, well see how the two languages
accommodate Object Oriented Programming principles by allowing you to
work with classes, methods, properties, inheritance, and so on.
xii
Preface

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, 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.