Part VII: The Application Code Model
Part VII: The Application Code Model
Application Classes and Methods
Best Practices for Code Customization
What events to handle or methods to override?
Do Not Forget the IsPostBack Flag
Referencing Page Controls in Code
Referencing Data Access Functions in Code
Additional Page Lifecycle References
Customizing and Debugging Inside Iron Speed Base Classes
Customizing Application Security
Implementing Custom User Authentication
Example: Overriding Security at the Page Level
Example: Programmatically Accessing the Currently Logged-in User
Example: Access User Name and Password from Sign In Control
Example: Allow Only Active Users to Login
Example: Encrypting Passwords Before Saving to the Database
Example: Restrict Login after Incorrect Password Used
Sending Email from an Application
Emailing the Contents of a Page
If You Have Problems Sending Email...
Customizing PDF Report Configuration Files
Text Substitution Parameters for Titles, Headers, Footers and Columns
PDF Report Alignment Configuration
PDF Report Language and Culture-Based Configuration
Adding, Deleting and Rearranging Columns in PDF Reports
Microsoft Word Report Customization
Customizing Microsoft Word Report Configuration Files
Text Substitution Parameters for Titles, Headers, Footers and Columns
Microsoft Word Report Alignment Configuration
Microsoft Word Report Language and Culture-Based Configuration
Customizing Microsoft Word Report Code
Customizing the AddColumn Method
Customizing the ExportToExcel Method
Crystal Reports Application Development and Deployment
Creating a Crystal Reports Report File
Adding a Crystal Report to Your Iron Speed Designer Application
Adding Crystal Reports References to Your Project
Opening Crystal Reports PDF Files in Separate Browser Windows
Deploying a Crystal Reports Application
Access ASP.NET Controls in Code-Behind Classes
Access Session State Information in Applications
Access Variables in the Data Access Layer
Adding an ASP.NET DataGrid Control to a Web Page
Adding Custom Functions to Your Application
Applying a Special CSS Style Sheet on Selected Pages
Catch Exceptions Raised in Custom Stored Procedures and Triggers
Compare Control Values with CompareValidator
Create a Series of Wizard Pages to Add a Record
Creating a Custom Large List Selector
Customizing the Data Access Layer
Overriding the GetRecordValues Function
Overriding the InsertRecord Function
Customizing the Default Error Message
Disable ValidationSummary and JavaScript for a Page
Expanding / Collapsing Sections on a Page
Modify the RedirectURL Property of a Menu
Opening a Page in a New Browser Window
Redirect to a Page Based on Logged In User
Retrieve Records with Primary, Non-Primary, and Composite Keys
Use Data Access Classes in Windows Forms Applications
Validate a Field in the Business Layer