DDN - Delphi for .NET
This course uses Delphi 2006 for .NET to demonstrate how to create ASP.NET and WinForms applications that use databases for display and manipulation of data. An overview of the .NET architecture is included as it relates to the Delphi development environment.
Overview of .NET
.NET Architecture
The Common Language Runtime (CLR)
Type Safety
Garbage Collection
Exception Handling
DLL Versioning
The Framework Class Library (FCL)
MSIL
Language Independence
JIT Compilation
WebForms
Server-side Processing
HTML Code Generation
Browser Independence
WinForms
Delphi Windows Applications
Delphi Win32 Applications
VCL.NET Applications
Web Services
Consumers and Providers
ASP.NET Applications
Web Application Structure
Web Forms
Adding Code to a Web Form
Server-side Tag Processing
Code-behind Files
Compiling the Code-behind File
Event Handling
Global Event Handling
Configuration Files
ASP.NET Page Execution
Parsing
Compiling
Assembly Cache and MSIL
CLR
HTML Code Generation
Postbacks
Assemblies
Global Assembly Cache (GAC)
Private Assemblies
Namespaces
FCL Namespaces
Using namespaces
Defining namespaces
Creating an ASP.NET Application
Web Forms
Creating Web Forms in Delphi
Creating a Web Application
Web Application Files
The Web Form Designer
.PAS Code-behind Files
The uses Clause
The Web Form Class
The implementation Section
Running a Web Form
Viewing Pages with IIS and Cassini
Setting the Start Page
Navigating to Other Pages
Redirection in HTML
Redirection in ASP.NET
Redirection Using the HyperLink Control
Redirection Using Response.Redirect()
Redirection Using Server.Transfer()
State Management
Query Strings
Cookies
Writing Values to Cookies
Reading Values from Cookies
ViewState
User-entered Values
Adding Values to ViewState
Application and Session State
Initializing Application and Session Variables
The Cache Object
Adding Items to the Cache Object
Working with Web Forms
Controls
HTML Controls
Converting HTML Controls to HTML Server Controls
Accessing HTML Controls at Runtime
The System.Web.UI.HtmlControls Namespace
Common Properties for HTML Web Server Controls
Limitations of HTML Server Controls
Web Server Controls
HTML Code Generation
Superset of HTML
The System.Web.UI.WebControls Namespace
Common Web Server Control Properties
Types of Server Controls
Intrinsic Controls
Browser-specific Code Generation
Mapping of Web Server Controls to HTML
Validation Controls
Rich Controls
List-bound Controls
Adding Items at Runtime
Flow Layout vs. Grid Layout
Using HTML Tables for Formatting
Grid Layout Mode
Data Binding Expressions
The DataBinding Method
Creating a Data Binding Expression
Linking Controls
Tracing and Debugging
The Trace Object
Trace.Write()
Trace.Warn()
The Debug Object
Viewing Trace Results
The Trace Attribute
Trace.Enabled
The PageOutput Attribute
The trace.axd Page
Input Validation
Client-side Validation
Client-side Validation in Web Server Controls
Control-generated JavaScript
Limitations of Client-side Validation
Server-side Validation
Validation Events
Order of Event Processing
Event Queuing and Postbacks
Event Triggering
Validation Redundancy
ASP.NET Validation Controls
Requiring Input
Comparing Values
Enforcing Ranges
The Type Property
Using Regular Expressions
Combining Validation Controls
Custom Validation
Page-level Validation
Validation Summary
Page.IsValid
Databases
Database Components
ADO.NET
ADO.NET Namespaces
BDP.NET
Database Connections
.NET Connection Objects
Connecting to a Database
BdpConnection
BdpConnectionString
Database Commands
.NET Command Objects
The BdpCommand Object
SQL Queries
Direct Table Access
Stored Procedures
Parameters
Data Adapters
.NET Data Adapters
BDPDataAdapter
Datasets and DataTables
Creating Datasets
Filling Datasets
Typed Datasets
Creating a Typed Dataset
.XSD Schema Files
DataTables
Accessing Other Rows and Columns
DataColumns
DataRows
Generating an HTML Table
DataRelations
Creating Data Relations
GetChildRows and GetParentRow
Data Binding
Simple Data Binding
Using a Binding Expression
Using a Function to Bind Data
Complex Data Binding
List-bound Controls
Iterative Controls
Paging
DataViews
Views
Sorting
Filtering
Navigation
Master-Detail Relationships
Limitations
Updating Records
Web Services
Overview of Web Services
XML, WSDL and SOAP
Request-Response Model
Discovery Services
iv. Testing Web Services with HTTP
Consuming Web Services
Web References
Proxies
Web Methods
Creating Web Services
The @WebService Directive
Creating Web Methods
Testing a Web Service
Configuration and Deployment
Configuration Files
Cascading Inheritance
web.config and app.config
machine.config
Web Server Setup
.NET Framework
IIS Configuration
Web Site Setup
Virtual Directories
ASPNET Account Permissions
Database Configuration
Connection Strings
Database Deployment
Global Assembly Cache (GAC)
\Windows\Assemblies
gacutil.exe
XCopy Deployment
Installers
Appendix A - Overview of Internet Server Applications
Appendix B - HTML Tag Reference
Appendix C - Data Models