Preface. 1. The .NET Platform and the Web. The Pathway to Web Applications. The Web Client/Server Model. Web Clients and Web Servers. Protocols for Web Client/Server Communication. Server-Side Processing with CGI Programs. Disadvantages of Using CGI. Components of ASP.NET and the .NET Framework. Overview of Internet Information Server. ISAPI Extensions. ISAPI Filters. Overview of ASP.NET. Web Forms. The .NET Common Language Runtime and Class Library. Managed Components in .NET. Web Services. Language Independence in the .NET Framework. COM+ Component Services and .NET. Direction and Plans for .NET. What's Ahead. 2. The VB.NET Crash Course. What Is VB.NET? Hello World (Yet Again). Lab 2-1: Your First VB Application. Variables, Constants, and Operators. Variable Types. Declaring and Assigning Variables. Scope and Lifetime of Variables. Arrays. Converting Data Types. Using Constants. Arithmetic and Comparison Operators. Modularizing Your Code-Functions and Subroutines. Using Functions. Using Subroutines. Controlling Program Flow. Conditional Processing. Flow Control Statements. Loops. Handling Errors and Exceptions. Unstructured Error Handling. Structured Exception Handling. Object-Oriented Programming. Class Basics. Class Properties. Constructors and Destructors. Inheritance. Overridden Functions. Overloading. Polymorphism Overview. Interfaces. Implementing Polymorphism by Using Interfaces. Multithreaded Programming. Thread Synchronization. Events and Thread Synchronization. Summary. What's Ahead. 3. Working with ASP.NET. The Features of ASP.NET. The Anatomy of ASP.NET Pages. The Code Structure of ASP.NET. Execution Stages and State Management. The Events Model for the Page Class. Introducing Web Forms. VS.NET Web Applications and Other IDE Basics. Separating Content and Code-the Code-Behind Feature. Application Configuration. Structure and Configuration of the Global.asax File. Using HTML Controls. The HTMLForm Control. The HTMLAnchor Control. The HTMLButton Control. The HTMLGenericControl Control. The HTMLImage Control. The HTMLInputButton Control. The HTMLInputCheckBox Control. The HTMLInputFile Control. The HTMLInputHidden Control. The HTMLInputImage Control. The HTMLInputRadioButton Control. The HTMLInputText Control. The HTMLSelect Control. The HTMLTable, HTMLTableCell, and HTMLTableRow Controls. The HTMLTextArea Control. Using Web Controls. Shared Web Control Properties. Web Controls for Displaying and Formatting Data. The Label Control. The Panel Control. The Table, TableRow, and TableCell Controls. Web Controls for Creating Buttons. The Button Control. The ImageButton Control. The LinkButton Control. Demonstration of Web Button Controls. Web Control for Inputting Text. The TextBox Control. Web Controls for Selecting Choices. The CheckBox Control. The RadioButton Control. The CheckBoxList and RadioButtonList Controls. Web Controls for Creating Lists. The ListBox Control. The DropDownList Control. Miscellaneous Basic Controls. The Hyperlink Control. The Image Control. Creating a Simple ASP.NET Application. Lab 3-1: Your First ASP.NET Project. ASP.NET Page Directives. The @ Page and @ Control Directives. The @ Import Directive. The @ Register Directive. The @ Assembly Directive. The @ OutputCache Directive. ASP.NET Rich Controls. The Calendar Control. The AdRotator Control. Validation Controls. The BaseValidator Control. The RequiredFieldValidator Control. The CompareValidator Control. The RangeValidator Control. The RegularExpressionValidator Control. The CustomValidator Control. Data List Controls. The Repeater Control. The DataGrid Control. The DataList Control. Building the XYZ Corporation Home Page. Lab 3-2: The XYZ Corporation Home Page. User Controls. Authoring a User Control. Saving State with the StateBag Object. ASP.NET Intrinsic Objects. The HttpRequest Object. The HttpResponse Object. The HttpServerUtility Object. The HttpApplicationState Object. The HttpSessionState Object. The ObjectContext Object. Summary. What's Ahead. 4. Using the .NET Framework Class Library. Common Features of the .NET Framework Class Library. Using Data Collections (System.Collections). The ArrayList Class. The Stack Class. The Queue Class. The Hashtable Class. Handling File Input/Output and Directories (System.IO). Reading Text Files. Writing Text Files. Using Binary File I/O with the FileStream Object. Reading Binary Files. Writing Binary Files. Performing File Operations. Getting File Information. Copying, Moving, and Renaming Files. Deleting Files. Creating, Moving, and Renaming Directories. Creating and Getting Directory Information. Accessing Directory Contents. Watching the File System for Changes (System.IO.FileSystemWatcher). Using the Windows Event Log (System.Diagnostics). Working with Active Directory Services (System.DirectoryServices). Displaying Active Directory Services Contents. Searching Active Directory Services Contents. Modifying Active Directory Services Contents. Using Message Queues (System.Messaging). Creating a Queue. Sending a Message to a Queue. Dequeuing a Message. Communicating with Servers on the Internet (System.Web and System.Net). A Simple TCP Client Application. A Simple TCP Server Application. HTTP Communication. Manipulating XML Data (System.XML). Creating Tree-Based XML Documents. Loading and Searching Tree-Based XML Documents. Reading Stream-Based XML Data. Writing Stream-Based XML Data. Formatting XML Data for Display. Sending Internet E-mail (System.Web.Mail). Summary. What's Ahead. 5. Building .NET Managed Components for COM+. The Concept of Managed Code Execution. The Common Language Runtime. The Common Type System. Just-in-Time Code Compilation. Code Assemblies. Application Domains. COM+ Component Services. Overview of COM. Overview of Transactions. Automatic Transactions. COM+ Applications. COM+ Security. .NET Classes and COM+ Component Services. Using VB.NET to Develop Managed Components. Defining Namespaces. Using the Class Library. Using Component "ing". Adding Initialization Code. Creating Methods. Creating Properties. Using the Class Library in an Application. Serviced Components. Building VB.NET Serviced Components. Lab 5-1: An Ordering and Inventory System Made with Serviced Components. Summary. What's Ahead. 6. Building Web Services. The Need for Web Services. Standards-Based Functionality (XML and HTTP). Separation of Data from Presentation. Overview of Web Services. The .asmx File. Web Service Classes and Web Methods. Web Service Description Language. Web Service Wire Formats. Using HTTP GET. Using HTTP POST. Using the Simple Object Access Protocol (SOAP). Web Services Discovery. Static Discovery. Dynamic Discovery. Creating a Simple Web Service. Lab 6-1: The Palindrome Web Service. Calling Web Services with Proxy Classes. Creating a Client for a Web Service. Lab 6-2: A Console Application for the Palindrome Web Service. Managing State in Web Services. Using Transactions in Web Services. Making an Advanced Web Service. Lab 6-3: An Enhanced Ordering and Inventory System. Summary. What's Ahead. 7. Accessing Data with ADO.NET. Overview of Data Access on the Web. Flat Files. Legacy or Mainframe Data. Proprietary Database APIs. Standard APIs. ADO. ADO.NET: The Next Generation of Data-Access Technology. ADO.NET Programming Objects and Architecture. The DataSet Class. The .NET Managed Data Provider. Displaying Database Data. The IDataReader Interface (System.Data.IDataReader). Working with Command Parameters. The DataGrid Control Revisited. Displaying Data in the DataGrid Control. Editing Data in the DataGrid Control. Programming with the DataList and DataGrid Controls. Lab 7-1: An Online Photo Gallery. Working with the DataSet and DataTable Objects. The DataSet Class Summary. The DataTable Class Summary. Creating DataSet and DataTable Objects. Adding Data to a DataTable Object. Displaying Data in a DataTable Object. Loading and Updating DataSet Objects with the IDataAdapter Interface. Filtering and Sorting Data with the DataView Class. Maintaining Data Integrity with the DataRelation Class. Using Manual Database Transactions. Working with Typed DataSet Objects. Lab 7-2: VS.NET and Typed DataSet Objects. Summary. What's Ahead. 8. Securing .NET Applications. Windows Security 5 File/Object System Security. User Rights, Groups, and Policies. IIS Authentication and Authorization Security. Anonymous Access. BASIC Authentication. Integrated Windows Authentication. Digest Authentication. Authentication by IP Address and Domain. A Crash Course in Cryptography. Symmetric Cryptography. Public Key Cryptography. Hashes and Digital Signatures. Digital Certificates. Implementing Data Encryption (System.Security.Cryptography). ASP.NET Authentication Security. The Forms-Based Authentication Provider. The Windows Authentication Provider. The Microsoft Passport Authentication Provider. Summary 6 Appendix A. .NET Framework Class Library Reference Tables. Appendix B. ADO.NET Class Library Reference Tables. Bibliography. Index. 0201734400T05012002
With ASP.NET, developers can create robust, high-performance Web applications and services in much the same way they've long constructed Windows applications: visually and rapidly. Whether you're an experienced Web developer or not, ASP.NET and VB.NET Web Programming will show you how to make the most of ASP.NET, using Microsoft's most popular development language -- Visual Basic. Matthew Crouch begins by introducing the .NET platform and outlining its advantages for Web development when compared with alternative approaches. Next, he presents a crash course in Visual Basic .NET programming for both new VB developers and those upgrading from earlier versions. Crouch introduces ASP.NET's programming model and key features -- dissecting ASP.NET Web pages, introducing ASP.NET's powerful Web, HTML, and rich controls, and walking step-by-step through the creation of a full ASP.NET application. Next, he demonstrates how to access the .NET Framework Class Library from ASP.NET, leveraging .NET's built-in directory services, message queueing, Internet communication, and XML data manipulation facilities. The book also contains extensive coverage of building .NET managed components and Web services with Visual Basic .NET; accessing data with ADO.NET; and securing your .NET applications. The accompanying CD contains all the source code from the book. For all Web application developers who are just starting out with .NET.
Matt J. Crouch is senior technologist at RealMed Corporation (http://www.realmed.com). Previously, Matt was senior Internet developer at Centillion Digital Systems,aA A Inc. He has been developing Web applications, including e-commerce applications, with both ASP and COM since their release from Microsoft. Contact him at firstname.lastname@example.org. 0201734400AB05012002