You are on page 1of 17

Q":wositepoint

BuildYourOwn

ASP.NETWebsite
UsingC#&VB.NET
APracticalStepbyStepGuide

BuildYourOwnASP.NETWebsiteUsingC#&VB.NET
(Chapters1,2,3and4)
Thank you for downloading the sample chapters of Zak Ruvalcabasbook,Build Your OwnASP.NET
WebsiteUsingC#&VB.NET,publishedbySitePoint.
This excerpt includes the Summary of Contents, Information about the Author, Editors and SitePoint,
TableofContents,Preface,4chaptersofthebookandtheindex.
Wehopeyoufindthisinformationusefulinevaluatingthisbook.
Formoreinformation,visitsitepoint.com

SummaryofContentsofthisExcerpt

Preface..........................................................................................xi1.Introduction to.NETandASP.NET
...................................... 1 2. ASP.NET Basics..................................................................... 31 3. VB.NET
and C# Programming Basics.................................. 47 4. Web Forms and Web Controls
.............................................85Index.........................................................................................721

SummaryofAdditionalBookContents
5. Validation Controls ............................................................. 131 6. Database Designand Development
.................................... 161 7. Structured Query Language................................................. 197 8.
ADO.NET ............................................................................ 243 9. The DataGrid and DataList Controls
................................. 305 10. DataSets ............................................................................. 363 11. Web
Applications .............................................................. 421 12. Building an ASP.NET Shopping
Cart............................... 451 13. Error Handling................................................................... 497 14.
Security and User Authentication..................................... 531 15. Working with Files and
Email........................................... 559 16. Rich Controls and User Controls ...................................... 597
17. XML Web Services ............................................................ 645 A. HTML Control Reference
...................................................683B. WebControlReference.......................................................699C.
ValidationControlReference.............................................715

BuildYourOwnASP.NETWebsiteUsing
C#&VB.NET
byZakRuvalcaba

BuildYourOwnASP.NETWebsiteUsingC#&VB.NETbyZakRuvalcaba
Copyright2004SitePointPty.Ltd.
ExpertReviewer:KevinYankEditor:GeorginaLaidlawTechnicalEditor:RichDeesonManagingEditor:
SimonMackieIndexEditor:BillJohncocksCoverDesign:JulianCarrollPrintingHistory:
FirstEdition:April2004

NoticeofRights
All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any
means, without the priorwrittenpermissionofthe publisher,except inthe caseofbriefquotationsembodiedin criticalarticles or
reviews.

NoticeofLiability
The author and publisher have made every effort to ensure the accuracy of the information herein. However, the information
contained in this book is sold without warranty, either express or implied. Neither the authors and SitePoint Pty. Ltd., nor its
dealers or distributors will be held liable for any damages to be caused eitherdirectly or indirectly by theinstructionscontained
inthisbook,orbythesoftwareorhardwareproductsdescribedherein.

TrademarkNotice
Rather than indicating everyoccurrenceofatrademarkednameassuch,this book usesthenames onlyinan editorial fashionand
tothebenefitofthetrademarkownerwithnointentionofinfringementofthetrademark.

PublishedbySitePointPty.Ltd.
424SmithStreetCollingwoodVICAustralia3066.
Web:www.sitepoint.comEmail:business@sitepoint.com
ISBN0957921861PrintedandboundintheUnitedStatesofAmerica

AboutTheAuthor

Zak Ruvalcaba has been designing, developing and researching for theWebsince 1995. He holds aBachelorsDegree fromSan
DiegoStateUniversityandaMasterofScienceinInstructionalTechnologyfromNationalUniversityinSanDiego.
In the course of his career, Zak has developed Web applications for such companies as Gateway,HP,Toshiba,andIBM.More
recently, hes worked as a wireless software engineer developing .NET solutions for Goldman Sachs, TV Guide, The Gartner
Group, Microsoft and Qualcomm. Currently, Zak holds a programming position with ADCS Inc. in San Diego supporting
internal.NETapplications.
Previous books by Zak Ruvalcaba include The 10 Minute Guide to Dreamweaver 4 (Que Publishing) and Dreamweaver MX
Unleashed (Sams Publishing). He also lectures on various technologies and toolsincluding DreamweaverandASP.NET for the
SanDiegoCommunityCollegeDistrict.

AboutTheExpertReviewer
As Technical Director for SitePoint, Kevin Yank oversees all of its technical publica tionsbooks, articles, newsletters and
blogs. He has written over 50 articles for SitePoint on technologies includingPHP,XML, ASP.NET,Java,JavaScriptand CSS,
butisperhapsbestknownforhisbook,BuildYourOwnDatabaseDrivenWebsiteUsingPHP&MySQL,alsofromSitePoint.
Having graduated from McGill University in Montreal with a Bachelor of Computer En gineering, Kevin now lives in
Melbourne, Australia. In his spare time he enjoys flying light aircraft and learningthe fineartofimprovisedacting.Goyoubig
redfireengine!

AboutTheTechnicalEditor
Rich Deeson wrote his first programs at the age of 10 on his fathers work machine, a 380Z with 256k RAM. Since then, his
career has taken himaroundEurope,andhastaughthimthe ins andoutsofmany languages, fromC++ toJava,from QuickBasic
(the precursor to Visual Basic) to VB.NET, fromPerland CGIto JSP andASP.NET.Currently,he is lead JSP developerat ICTI
intheUK,andmostofhisfreetimeistakenupatUniversity,havingreturnedtostudylastyear.

AboutSitePoint
SitePoint specializes in publishing fun, practical and easytounderstand content for Web Professionals. Visit
http://www.sitepoint.com/toaccessourbooks,newsletters,articlesandcommunityforums.

FormywifeJessica.


ii

You might also like