Home   Cover Cover Cover Cover
 

Example Archive for the Book ".NET Application Development"

This archive contains examples from the book ".NET Application Development" in electronic form. With a few exceptions, all examples are shown with their output. The examples from the chapters on ASP.NET and Web Services can even be tested online.

1.What is .NET?
2.The Language C#
3.The .NET Architecture
3.2Common Type System (CTS)
Example: SyncAsyncDelegate
3.3Common Language Specification (CLS)
Example: CLSCompliantAttribute
3.4Common Intermediate Language (CIL)
Example: untyped statements
3.5Metadata
Example: attributes
3.6Assemblies and Modules
Example: multi-file assembly
Example: types from other assemblies
3.7Virtual Execution System (VES)
Example: simple probing
Example: probing with private searchpath
Example: probing with culture attribute
3.8Security
Example: IsSubsetOf - implicit permissions
Example: Demand - permission checking
Example: Deny - denying permissions
Example: declarative security
Example: imperative security
4.The .NET Class Library
4.1Collections
Example: Comparer
Example: Hashtable
4.2Input/Output
Example: writing a simple log to a file
Example: listing a directory
Example: monitoring the file system
Example: isolated storage
4.3Threads
Example: simple threads
Example: stopping a tread (method Abort)
Example: stopping a thread (using a condition)
Example: thread pools
Example: Lock
Example: Monitor
Example: Wait and Pulse
4.4Network Communication
Example: EchoServer and EchoClient
Example: WebRequest
4.5Reflection
Example: Assembly
Example: Type
Example: Activator
Example: searching for a method
Example: calling a method dynamically
Example: creating assemblies at run time
4.6Windows.Forms
Example: file open dialog
Example: HelloWorldForm
Example: MouseEvent color panel
Example: MouseEvent position
Example: BarChartControl CustomControl
4.7Xml
Example: XmlReader
Example: XmlDocument from a string
Example: XmlDocument by creating new elements
Example: XPath query
Example: XslTransform
5.ADO.NET
6.ASP.NET
6.1Creating Dynamic Web Pages
Example: aspx page with embedded script code
Example: aspx page with script tags
Example: aspx page with code behind
6.2Simple Web Forms
Example: Adder: a web form with Button, Label and TextBox
Example: event tracking in a web form
Example: Command events for buttons
Example: TextBox
Example: CheckBox
Example: RadioButton
Example: ListBox with statically specified entries
Example: ListBox with dynamically specified entries
Example: ListBox with entries from a database
Example: DropDownList
Example: simple DataGrid
Example: editable DataGrid
Example: Calendar
6.5.6Validators
Example: validators
6.6.1User Controls
Example: User Controls
6.6.2Custom Controls
Example: Custom Controls
6.8Applikations
Applikation events (Global.asax)
6.9.2Configuration
Applikations configuration (Web.config and machine.config)
7.Web Services
7.2Simple Web Service
Example: a simple web service (TimeService)
Example: client in .NET
Example: client in Java
7.3SOAP
Example: specifying the message format
7.4SOAP und .NET
Example: passing complex parameters, specifying the XML namespace and the encoding
Example: abstract parameter types and inheritance
Example: SOAP header
Example: state management and lifecycle
8.Working with .NET