Beginning ASP.NET 3.5 in C# 2008 (eBook)
XXXVI, 954 Seiten
Apress (Verlag)
978-1-4302-0430-5 (ISBN)
This book will follow the proven pattern of its previous .NET 2.0 and .NET 1.1 editions, teaching novice users how to use ASP.NET by gradually building their knowledge of the technology up in a pyramidal fashion chapter by chapter. Comprehensively revised for both ASP.NET 3.5 and the new C# 3.0 language this book presents the easiest path to ASP.NET 3.5 mastery. This is one of the first books introducing novices to this important new technology area, and is written specifically in their coding language of preference. The book is written by a proven and award winning .NET author that has been following the technology release cycle since its inception.
Matthew MacDonald is an author,educator, and MCSD developer who has a passion for emerging technologies. He isthe author of more than a dozen books about .NET programming. In a dimly-remembered past life, he studied English literature and theoretical physics.
The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 3.5 in C# 2008 guides you through Microsoft's technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and it assumes only the most basic knowledge of C#. The book provides exhaustive coverage of ASP.NET, guiding you from your first steps right up to the most advanced techniques, such as querying databases from within a web page and tuning your site for optimal performance. Within these pages, you'll find tips for best practices and comprehensive discussions of key database and XML principles you need to know in order to be effective with ASP.NET. The book also emphasizes the invaluable coding techniques of object orientation and code behind, which will start you off on the track to building real world web sites right from the beginning rather than just faking it with simplified coding practices. By the time you've finished the book, you will have mastered the core techniques and have all the knowledge you need to begin work as a professional ASP.NET developer.
Matthew MacDonald is an author,educator, and MCSD developer who has a passion for emerging technologies. He isthe author of more than a dozen books about .NET programming. In a dimly-remembered past life, he studied English literature and theoretical physics.
Contents at a Glance 5
Contents 7
About the Author 24
About the Technical Reviewer 25
Acknowledgments 26
Introduction 27
About This Book 27
Code Samples 29
Chapter Overview 30
Feedback 31
Introducing .NET 32
The .NET Framework 33
The Evolution of Web Development 33
The . NET Framework 39
The Last Word 47
The C# Language 48
The . NET Languages 48
C# Language Basics 49
Variables and Data Types 51
Variable Operations 59
Object- Based Manipulation 63
Conditional Logic 69
Loops 71
Methods 75
The Last Word 80
Types, Objects, and Namespaces 81
The Basics About Classes 81
Building a Basic Class 84
Value Types and Reference Types 94
Understanding Namespaces and Assemblies 99
Advanced Class Programming 103
The Last Word 110
Developing ASP.NET Applications 112
Visual Studio 113
The Promise of Visual Studio 113
Creating Websites 114
Designing a Web Page 123
The Anatomy of a Web Form 128
Writing Code 138
Visual Studio Debugging 146
The Last Word 153
Web Form Fundamentals 154
The Anatomy of an ASP. NET Application 154
Introducing Server Controls 157
Improving the Currency Converter 172
A Deeper Look at HTML Control Classes 178
The Page Class 183
Application Events 186
ASP. NET Configuration 188
The Last Word 195
Web Controls 196
Stepping Up to Web Controls 196
Web Control Classes 199
List Controls 207
Table Controls 211
Web Control Events and AutoPostBack 216
A Simple Web Page 224
The Last Word 234
State Management 235
The Problem of State 235
View State 236
Transferring Information Between Pages 242
Cookies 252
Session State 255
Session State Configuration 260
Application State 269
An Overview of State Management Choices 271
The Last Word 272
Error Handling, Logging, and Tracing 273
Common Errors 273
Exception Handling 275
Handling Exceptions 278
Throwing Your Own Exceptions 284
Logging Exceptions 288
Error Pages 299
Page Tracing 304
The Last Word 317
Deploying ASP.NET Applications 318
ASP. NET Applications and the Web Server 318
Internet Information Services ( IIS) 323
Managing Websites with IIS Manager 331
Deploying a Simple Site 339
Deploying with Visual Studio 346
The Last Word 353
Building Better Web Forms 354
Validation 355
Understanding Validation 355
The Validation Controls 358
The Last Word 376
Rich Controls 377
The Calendar 377
The AdRotator 385
Pages with Multiple Views 388
The Last Word 401
User Controls and Graphics 403
User Controls 403
Dynamic Graphics 416
The Last Word 425
Styles, Themes, and Master Pages 426
Styles 426
Themes 440
Master Page Basics 448
Advanced Master Pages 459
The Last Word 465
Website Navigation 466
Site Maps 466
The SiteMapPath Control 483
The TreeView Control 488
The Menu Control 495
The Last Word 501
Working with Data 502
ADO.NET Fundamentals 503
Understanding Data Management 503
Configuring Your Database 506
SQL Basics 510
ADO. NET Basics 518
Direct Data Access 523
Disconnected Data Access 547
The Last Word 556
Data Binding 557
Introducing Data Binding 557
Single- Value Data Binding 559
Repeated- Value Data Binding 564
Data Source Controls 579
The Last Word 596
The Data Controls 597
The GridView 597
Formatting the GridView 603
Selecting a GridView Row 609
Editing with the GridView 613
Sorting and Paging the GridView 616
Using GridView Templates 621
The DetailsView and FormView 630
The Last Word 635
Files and Streams 636
Files and Web Applications 636
File System Information 637
Reading and Writing with Streams 651
Allowing File Uploads 661
The Last Word 665
XML 666
XML’s Hidden Role in . NET 666
XML Explained 667
The XML Classes 673
XML Validation 690
XML Display and Transforms 697
XML Data Binding 701
The Last Word 707
Website Security 708
Security Fundamentals 709
Determining Security Requirements 709
The ASP. NET Security Model 710
Forms Authentication 715
Windows Authentication 728
Impersonation 735
Confidentiality with SSL 737
The Last Word 741
Membership 742
The Membership Data Store 742
The Security Controls 759
Role- Based Security 772
The Last Word 778
Profiles 779
Understanding Profiles 779
Using the SqlProfileProvider 782
The Last Word 801
Advanced ASP.NET 802
Component-Based Programming 803
Why Use Components? 803
Component Jargon 804
Creating a Component 807
Properties and State 815
Data- Access Components 818
The ObjectDataSource 828
The Last Word 834
Caching 835
Understanding Caching 835
Output Caching 838
Data Caching 846
Caching with Dependencies 857
The Last Word 867
ASP.NET AJAX 868
Understanding Ajax 869
Partial Refreshes 872
Progress Notification 884
Timed Refreshes 889
The ASP. NET AJAX Control Toolkit 891
The Last Word 901
Index 903
Erscheint lt. Verlag | 26.2.2008 |
---|---|
Zusatzinfo | XXXVI, 954 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Software Entwicklung |
Mathematik / Informatik ► Informatik ► Web / Internet | |
Schlagworte | ADO.NET • ASP • ASP.NET • Boo • C# • Framework • Navigation • Visual Studio • XML |
ISBN-10 | 1-4302-0430-3 / 1430204303 |
ISBN-13 | 978-1-4302-0430-5 / 9781430204305 |
Haben Sie eine Frage zum Produkt? |
Größe: 19,7 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich