Code Customization Examples

Access ASPX Controls in Code-Behind Classes

Access Session State Information in Applications

Access Variables in the Data Access Layer

Access User Name and Password from Sign In Control

Adding Custom Functions to Your Application

Allow Only Active Users to Login

Catch Exceptions Raised in Custom Stored Procedures and Triggers

Change Database Dynamically at Run-Time

Compare Control Values with CompareValidator

Create Reusable Panels

Create a Series of Wizard Pages to Add a Record

Customizing the Data Access Layer

Customizing the Default Error Message

Disable ValidationSummary and JavaScript for a Page

Disable View State for a Page

Display Total Records on a Page

Display Detail Tables in a Tabbed Interface

Display PDF, Word or Excel Files

Encrypting Passwords Before Saving to the Database

Get ID of Saved Record in Button Click Handler

Go to a Specific Page in a Table Panel

Handling a Selected Row in a Table

Handling Button Events

Modify a Menu’s RedirectURL Property

Modify and Redirect URL Values Programmatically

Modify Search Field Behavior

Modifying Values before Saving Data

Override the DataBind Method on a Page Class

Override the DataBind Method on a TableControl Class

Override the Delete Button Handler

Perform Special Processing when Logging Out

Redirect to a Page Based on Logged In User

Restrict Login after Incorrect Password Used

Retrieve File Name of an Uploaded File

Retrieve Records with Primary, Non-Primary, and Composite Keys

Set the Default Value of a FieldFilter on a Show Table Page

Set Maximum Dropdown List Size Globally

Upload Files

Upload Files to File System

Use Data Access Classes in Windows Forms Applications

Use RegisterJScriptAlert to Display Messages

Validate Dependent Fields with Custom Validators

Fun with Redirection