Pro Dynamic .NET 4.0 Applications -  Carl Ganz

Pro Dynamic .NET 4.0 Applications (eBook)

Data-Driven Programming for the .NET Framework

(Autor)

eBook Download: PDF
2010 | 1st ed.
264 Seiten
Apress (Verlag)
978-1-4302-2520-1 (ISBN)
Systemvoraussetzungen
46,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

As a developer you are likely painfully aware that not all features of an application can be anticipated when the software ships. In order to cope with these eventualities and save yourself time (and perhaps money), it makes sense to write your applications in such a way that end users can be made as independent of the developers as possible. Giving your users the power to make changes to the way the application operates once it has shipped gives them more control over the way the application works, while reducing the frequency with which you need to redistribute application files, creating a win-win situation.

Pro Dynamic .NET 4.0 Applications explains how to give users the power to create additional data-entry fields, validation logic, and new reports without assistance from the application developer. You will learn how to do this for both desktop (C# and WPF) and web (ASP) applications.



Carl Ganz, Jr. is president of Seton Software Development, Inc., a provider of software design and development services located in Raritan, New Jersey. He holds a master's in business administration from Seton Hall University and is the author of three other books on software development as well as dozens of articles on Visual Basic, C#, and Microsoft .NET technology. Carl has created numerous solutions over the years using the Crystal Enterprise and BusinessObjects XI .NET and RAS SDKs. He is the president and founder of the New Jersey Visual Basic User Group and has been a featured speaker at software development conferences in both the U.S. and Germany. Carl and his wife, Wendy, live in Raritan with their son, Carl III, their dog, Elke, and their cats, Jack and Jake. Contact Carl at seton.software@verizon.net.
As a developer you are likely painfully aware that not all features of an application can be anticipated when the software ships. In order to cope with these eventualities and save yourself time (and perhaps money), it makes sense to write your applications in such a way that end users can be made as independent of the developers as possible. Giving your users the power to make changes to the way the application operates once it has shipped gives them more control over the way the application works, while reducing the frequency with which you need to redistribute application files, creating a win-win situation. Pro Dynamic .NET 4.0 Applications explains how to give users the power to create additional data-entry fields, validation logic, and new reports without assistance from the application developer. You will learn how to do this for both desktop (C# and WPF) and web (ASP) applications.

Carl Ganz, Jr. is president of Seton Software Development, Inc., a provider of software design and development services located in Raritan, New Jersey. He holds a master's in business administration from Seton Hall University and is the author of three other books on software development as well as dozens of articles on Visual Basic, C#, and Microsoft .NET technology. Carl has created numerous solutions over the years using the Crystal Enterprise and BusinessObjects XI .NET and RAS SDKs. He is the president and founder of the New Jersey Visual Basic User Group and has been a featured speaker at software development conferences in both the U.S. and Germany. Carl and his wife, Wendy, live in Raritan with their son, Carl III, their dog, Elke, and their cats, Jack and Jake. Contact Carl at seton.software@verizon.net.

Dedication Page 4
Contents at a Glance 5
Table of Contents 6
About the Author 10
About the Technical Reviewer 11
Acknowledgments 12
Introduction 13
Chapter 1: Introducing Data-Driven Programming 14
Database Metadata 15
SQL Server 15
WORKING WITH TABLE JOINS 16
Oracle 17
Practical Applications 19
Code Generation 22
Custom Code Generators 23
Using the CodeDOM 26
Namespaces, Classes, and Fields 26
Support Methods 30
Constants 34
Enums 35
Properties 36
Methods 37
Constructors 40
Source Code 40
Summary 41
Chapter 2: Reflection 42
Instantiating Classes 42
Loading Shared Assemblies 44
Examining Classes 45
Methods 46
Fields 48
Properties 50
Interfaces 51
Constructors 52
Events 53
Drilling Down into Assembly Objects 54
Building an Object Hierarchy 54
Importing Control Definitions 58
Decompiling Source Code 65
Summary 70
Chapter 3: Runtime Code Compilation 71
System.CodeDom.Compiler Namespace 71
Compiling the Code 73
Error Handling 75
Executing the Code 78
Referencing Controls on Forms 80
SIMPLIFYING THINGS FOR THE USER 82
Adding References 82
Testing 87
Summary 87
Chapter 4: Dynamic WinForms 88
Instantiating Forms 88
Using Third-Party Controls? 92
Wiring Events 92
SuspendLayout and ResumeLayout 93
Loading Control Definitions 94
Loading from XML 95
Loading from a Table 97
Connecting Event Code 101
Practical Solutions 103
Building a Filter Screen 103
Saving the User Selections 104
Restoring the User Selections 108
Saving Grid Settings 110
Data-Driven Menus 114
Application Menus 115
Most Recently Used File Menu 119
Creating Criteria Screens 121
Dynamic Criteria Controls 121
Cascading Prompts 126
Extracting the User Selections 128
Summary 133
Chapter 5: Dynamic ASP.NET 134
Instantiating Web Controls 134
Understanding the Page Life Cycle 138
Using HTML Tables 144
Absolute vs. Static Positioning 145
ParseControl 148
Instantiating User Controls 150
Repeater Controls 154
Practical Solutions 158
Dynamic Criteria Controls 158
Extracting the User Selections 163
Summary 164
Chapter 6: Dynamic WPF 165
XAML 165
WPF: Beyond the Hype 165
Layout 167
Canvas 168
Grid 170
StackPanel 172
WrapPanel 174
DockPanel 176
Runtime Instantiation 178
Accessing Child Controls 181
Nested Controls 182
XamlWriter/XamlReader 185
Persisting Objects 186
IsAncestorOf/IsDescendantOf 187
Wiring Events 189
Data-Driven .Menus 190
Summary 192
Chapter 7: Reporting 193
SQL Server Extended Properties 193
Microsoft Excel 199
Formatting in a Stored Procedure 200
Syncfusion’s Essential XlsIO 201
SoftArtisans’ OfficeWriter for Excel 204
PDF 207
iTextSharp 207
Syncfusion’s Essential PDF 210
SAP/Business Objects: Crystal Reports 212
Embedded vs. Nonembedded Reports 212
Dynamic Crystal Reports 212
Preset Columns 212
Using the Crystal SDK 215
SQL Server Reporting Services 220
Using RDL 220
Dynamic Rdl 222
Summary 226
Chapter 8: Database Design 227
Data Storage 227
Committing Data to the Database 231
Using Inverted Tables 235
Structuring Inverted Data 235
Extracting Inverted Data 237
Converting Inverted Data to a Normalized Structure 239
Mixing Normalized and Inverted Tables 242
Summary 245
Index 246

Erscheint lt. Verlag 26.3.2010
Zusatzinfo 264 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Programmiersprachen / -werkzeuge NET Programmierung
Mathematik / Informatik Informatik Software Entwicklung
Mathematik / Informatik Informatik Theorie / Studium
Mathematik / Informatik Informatik Web / Internet
Schlagworte ASP • ASP.NET • C# • Control • Database • .NET Framework • programming • Time • Windows Presentation Foundation
ISBN-10 1-4302-2520-3 / 1430225203
ISBN-13 978-1-4302-2520-1 / 9781430225201
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 5,2 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schrä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.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

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.

Mehr entdecken
aus dem Bereich
Expert-backed advice for information system design, down to .NET and …

von Jean-Philippe Gouigoux

eBook Download (2024)
Packt Publishing (Verlag)
38,39
Build practical projects with Blazor, .NET MAUI, gRPC, GraphQL, and …

von Mark J. Price

eBook Download (2023)
Packt Publishing Limited (Verlag)
35,99