These are the most recent articles published to the site.
Using a BasePage Class
Something I've been doing with my ASP.NET applications is creating a shared Page class from which all my Web pages inherit. This allows all the pages to sh...
Click for more...
Create a ViewState Property
ASP.NET uses the ViewState to store data going back and forth to the server, eliminating the manual drudgery of reloading form controls and so forth. The V...
Click for more...
Create Smart Properties for Objects
When I'm writing Web applications, I may need to use lots of objects at various times while the application is running, but I generally don't always need a...
Click for more...
Using the ItemCommand Event of the Repeater Control
I'm a bit of an HTML purist, so I love the Repeater control. It allows me to specify exactly which HTML ASP.NET uses to create a table, list, etc. without ...
Click for more...
Using the ItemDataBound Event of the Repeater
Each time a data record is added to the Repeater control, an ItemDataBound event is fired. Within the event, you can access the controls that are created, ...
Click for more...
Using a Parameter Array
Most functions require a set list of parameters to operate. However, you'll create some functions that need a variable list of parameters. A good example o...
Click for more...
Adding Message and Confirmation Boxes
Any time I have a Delete or Cancel button, I add a JavaScript confirmation dialog to keep the user from doing something he might regret. In other cases, a ...
Click for more...
Create a Custom Configuration Section
The configuration file concept in .NET makes it much easier to change runtime settings without having to recompile. These files hearken back to the days of...
Click for more...
Using Overloaded Constructor Methods
In a previous tip, you learned how to redefine the function of simple operators like plus (+) and minus (-) using overloaded operators. In this tip, you'll...
Click for more...
Create a Perpetual Copyright Notice
One of the easiest ways to tell if a Web site has been updated recently is to check the bottoms of its pages. Many sites include page footers with their co...
Click for more...
Validate a Credit Card Numerically
Before I accept any credit card number into my application, I run a simple numerical validation against it. All major credit cards (American Express, Disco...
Click for more...
Using RadioButtons in a Repeater
The ASP.NET Repeater control is one of my favorites, mainly because it is fully customizable and it allows me to build many types of applications. However,...
Click for more...
Logging Exceptions to the Event Log
Assuming you have Remote Desktop or some other access to a server, the system event log is a good place to store information about your application. I pers...
Click for more...
Control the Layout Of Your Input Forms
Although many of your input forms will have a fixed number of fields, in some cases you'll need to vary the number and configuration of your controls. This...
Click for more...
Searching System Event Logs
One of the more tedious tasks a system administrator has to do is review the system event logs using the Event Viewer. These logs can provide valuable info...
Click for more...
Creating a Form Using Placeholder Controls
Previous tips explained how to use a Repeater control to build a dynamic form containing some number of text box controls. However, you may have a case in wh...
Click for more...
Restricting Access to Downloadable Files
A developer, working on a Web application that allowed only registered members to access a file, recently asked me if there was any way to control how the ...
Click for more...
Selecting Master Pages On The Fly
Master pages, introduced with ASP.NET 2.0, provide developers an easy way to create a shared layout for a site or portion of a site without having to work ar...
Click for more...
Creating Nested Master Pages
Master pages are the best solution for creating a Web site that has shared elements, such as headings and navigation bars. Sometimes you may want to have o...
Click for more...
Adding a New Event in ASP.NET
An application I have uses a custom Login control that handles user registration and login functions. This control has an event called UserAuthenticated th...
Click for more...