TheGambleFamily.net
Ted's Code Library - No Warrantees Expressed or Implied


This code library represents a collection of tips, tricks, hacks, samples, and actual solutions that I have either encountered or developed myself during my career as a Software Engineer.

Most of the samples found here are from magazines, books, and various code repositories on the internet. I have attempted to give credit to the original source where possible. If you use any of the code or information provided here, please be courteous and do the same.

NOTE: There are NO warranties, expressed or implied, in any of the information presented here. Use is strictly on an "as is" basis. Additionally, please do not contact me to ask questions or to request support, as I have neither the time, nor the desire, to provide additional programming services beyond my regular day job.

 
Enter your search criteria
 
Category:  
Search String:  

Fields to search:
Title    Description    Code    Keywords
 
Total records found:  769
Last update to this repository:  8/25/2008
This query took 0.2030 seconds to execute
 

.Net - ADO.Net

ADO.Net
Using C# to call stored procedures (with and without parameters)

ADO.Net Examples
Examples of how to open connections, read data, and read XML using both the SQLServer and OleDB providers. Shows how to open Jet database also.

Populate DataTable
Demonstrates simple DataTable population using SqlConnection, SqlCommand, and SqlDataAdapter.

Typed DataSets
Demonstrates how to create and use typed datasets in .Net


.Net - ASP.Net

AJAX (for .Net 1.1)
Shows how to use Ajax to retrieve a dataset and populate an HTML div.

AJAX Web Services
Article explaining using AJAX extensions to return results from a web service formatted as either XML or JSON (Javascript Object Notation).

ASP.Net Modal Dialog
Shows how to pass info to and get info back from a modal dialog in .Net

Cache vs. Static Variables
Article comparing ASP.Net Cache object and Static variables.

Caching Credentials in .Net
Uses CredentialCache to cache user's id and password so that user will not have to re-authenticate.

Cookies in ASP.Net
Demonstrates how to use single value and multiple value cookies in ASP.Net

Could not establish trust relationship with remote server
Workaround for invalid SSL certs that result in the "Could not establish trust relationship with remote server" error message.

Default "Enter" Button on ASP.Net Webform
How to create a default "Enter" button in ASP.Net

Determining Image Dimensions (Height & Width)
Code to determine the height and width of an uploaded image

Double Hop Authenication
Explains how to set up you environment so that double-hop authentication can be accomplished between websites.

Encrypting ASP.Net Credentials and Session State Connection Strings
How to use the ASP.NET utility to encrypt credentials and session state connection strings. Applies to 1.0 and 1.1 .Net Frameworks

Encrypting Viewstate
Explains how to encrypt Viewstate in a .Net web application.

Execute a Web Request to Get Data (as in RSS data)
Demonstrates how to open a web request and get data from the source.

Generating Thumbnail Images from ASP.Net
Demonstrates how to generate a thumbnail image from an ASP.Net page.

Global Exception Handling and Logging in ASP.Net
Create a global exception handler that logs errors to a table.

Global.asax
This article explains the ASP.NET application class, global.asax and using context in an application.

How Long Has IIS and the Server Been Running
How to determine how long the IIS process, as well as the server, has been running.

HTTP Modules
Good article that demonstrates how to build and implement an HTTP Module.

HTTP Modules (Like iFilters)
HTTP skeleton code to tap into the ASP.Net pipeline and override certain phases of the request.

Insert Data Into an Excel Workbook and Stream It to the Browser
Insert Data Into an Excel Workbook and Stream It to the Browser

Invalid ViewState Error in ASP.Net
One workaround to try if you are experiencing the infamous Invalid ViewState error in your ASP.Net applications.

Load XML From Remote URL
Demonstrates how to load xml from a remote URL

Loading ASP.NET Templates Dynamically
Load ASP.NET templates dynamically for a DataList Web server controls based on the user selection

Measuring Session State and Cache Contents and Details
Retrieve Session State variables and Cache contents and display their contents (and size for Session

Measuring Session State Size
Demonstrates how to compute session state size

Passing DataGrid Data From One ASPX Page to Another
Demonstrates how to display a datagrid on one page and post it's data (using Server.Transfer) to a second page.

Passing Values Between Two Webforms
Demonstrates how to use Server.Transfer to pass values from one webform to another during the postback.

Registering an Assembly in the GAC
Article that describes how to register an assembly in the Global Assembly Cache (GAC).

Scroll to Control on Page Without SmartNavigation
Demonstrates how to scroll a control into view on a webform

Setting Last Modified Date on Blob Stream
How to set the Last Modified date on an blob stream sent via ASP.Net Response object

Using SQL Server for ASP.Net Session State - Hotfix
Microsoft Hotfix http://support.microsoft.com/kb/836680/

ValidateRequest - Allowing HTML in Form Posts
Explains how to set validateRequest to false so that .Net webforms can post HTML to the server without generating an error.

XSL Transformations .Net
Demonstrates how to perform an XSL transformation on an XML document.


.Net - C#

4181 - Installing the SSL Certificate
You may receive a "Trusted Connection" or "Underlying connection closed" error trying to access the webservice on 4181 from within your .NET code.

Active Directory Search
Returns a dataset from an Active Directory search. Of particular interest is the manner that the LDAP root is determined.

Add, Change, Delete Record Maintenance Sample (ADO.Net and C#)
C# application that uses drop-down to position to record. Has first,prev,next,last record nav buttons. Has add,update,delete buttons. Great ADO.Net sample.

Adding User to Active Directory Group
Demonstrates two methods of adding a user to an active directory group.

ADSI Programming Sample
Demonstrates how to query Active Directory for a particular user, lists groups, isMember, etc.

App.Path in C#
Function to retrieve app.path

Asc and Chr in C#
Demonstrates how to accomplish the Asc and Chr VB functions in C#

ASP.Net Forms Authentication
How to set up and use Forms Authentication in ASP.Net

Aspect Oriented Programming - Intercepting Method Calls for Tracing
This sample demonstrates how to use Aspect Oriented Programming to intercept the call chain in a class' methods in order to capture the value of incoming parameters and return values of the class' methods.

C# Documentation: A Simple Way to Include Examples
Demonstrates how to use Include files with NDoc to provide code samples

Calling C# From VB6
Demonstrates how to create .Net assemblies that can be called from within VB6.

Catching Custom SQL Errors From Stored Procs
Demonstrates how to determine a custom error number when raised from a stored procedure. NOTE: This example uses the DTDataAccess library.

Catching Custom SQL Errors From Stored Procs (Expanded)
Demonstrates how to determine a custom error number when raised from a stored procedure. NOTE: This example uses the DTDataAccess library.

Choosing .Net Collection Classes
Explains the various .Net collection classes and recommends when to use each type.

Code to Map a Drive Letter (and Pass Credentials)
Map a drive letter to a network share

Code to Map a Drive Letter (Picks Next Available Drive)
Code to map a network drive by picking the next available drive letter

Collection Class
Demonstrates how to implement a collection class in C#. Uses a struct as an item and also has a custom enumerator.

Collection Class - The Simple Way
Demonstrates how to implement a collection class using CollectionBase, which makes it much simpler than having to define an iterator, etc.

Constructor Chaining
Demonstrates how to chain a class's constructors.

Convert ADO.Net DataTable to ADODB.RecordSet
Demonstrates how to convert an ADO.Net DataTable into an ADODB.RecordSet. NOTE: You must set a reference to Microsoft ActiveX Data Objects to use ADODB.RecordSets. If you want to pass the ADODB.RecordSet back to VB6, you must COM+ enable your class.

Convert ADODB.RecordSet to ADO.Net DataSet
Demonstrates how to convert an ADODB.RecordSet into an ADO.Net DataSet

Convert Collection of Objects to DataTable
Demonstrates how to convert a collection of objects into a DataTable

Convert Color Image to Black & White
Shows how to convert a color image to black and white.

Convert to Local and UTC Time
Demonstrates how to convert local to UTC and UTC to local time

Converting String to Byte Array and Byte Array to String
Demonstrates how to convert a string to a byte array and also how to convert a byte array to a string.

Create a Hash From a String
Demonstrates how to create a hash from a string. The string is made more tamper-proof by adding a secret string to it.

Create Thumbnails From Original Image Files (Resize Images)
Demonstrates how to resize images in C#

Creating a Send-To Shortcut to Add a .Net Asembly to the GAC
Explains how to create a Send To-item in your Windows Explorer right-click shortcut menu to install a .Net assembly to the GAC

Creating Non-Rectangular Windows with .NET
Creating Non-Rectangular Windows with .NET

Custom Captions and Extended Properties of DataSet Columns
Shows how to set custom column captions and how to use the ExtendedProperties of columns.

Custom Configuration Section Handler
Demonstrates how to build a custom configuration section handler to handle custom sections in app.config or web.config.

Data Driven Business Entity Objects
Demonstrates how to tag business entity objects with attributes that specify stored procedures, parms, and field mappings so that the business entity object automatically maps to the underlying database table.

Debugging a Windows Service
Describes how to attach to and debug a Windows Service

Debugging Assembly Loading Failures
This article explains the use of Microsoft's Fusion Log Tool to debug assembly load problems.

Delegates
Demonstration of how delegate methods work

Deprecating a Method or Property
Demonstrates how to mark a property or method as obsolete (deprecated).

Deserialize an XML Document into an Object
Demonstrates how to take an XML document, and deserialize it to rehydrate an object

Design Patterns
Samples of all 23 design patterns

Determine Pixel is Black and White or Color
Determine if a pixel is within a gray scale tolerance. If not, assume the pixel comes from a color photo.

Disable Right-click Context Menu for Text Boxes
Disables the context menu in text boxes when user right clicks.

Disabling the Close X Button on WinForm
This sample demonstrates 2 wasy to disable the "Close X" button on a WinForm

Dynamically Create DataTable on the Fly
Dynamically create a DataTable on the fly and populate it with data

Dynamically Load an Assembly and Call a Method (Two samples with performance analysis)
Demonstrates 2 ways to dynamically load an assembly and call a method on it. Also contains informance on performance differences between the options.

Dynamically Load an Assembly and Dynamically Call a Method (Two samples with performance analysis)
Demonstrates two ways to dynamically load and assembly and dynamically invoke a method.

Dynamically Load Assembly - Extensible UI
Demostrates how to build an extensible UI that dynamically loads assemblies from a config file

Dynamically Load Assembly and Call a Method
Demonstrates how to dynamically load a .Net assembly and call a method on it.

Encryption/Decryption Using C#
Used TripleDES encryption/decryption. Two samples - One encrypts/decrypts a file and the other encrypts/decrypts a string.

Enterprise Library - Circumventing dataconfiguration.config
Demonstrates how to use Microsoft Enterprise Library, but instead of storing the connection information in the dataconfiguration.config file, it can be stored elsewhere.

Enterprise Library - Explicit Use of Connection Open/Close
Demonstrates how to use explicit open and close connections in Microsoft Enterprise Library.

Enterprise Library Exception Handler - Memory Leak if Used Improperly
If used incorrectly, Enterprise Library Exception Handler leaks memory. See these notes.

Enumeration Sample
Demonstrates how to use custom strings in enumerations

Environment Variables and Drive Information
Demonstrates how to retrieve environment variables and local drive information in C#

Events and Delegates
Demonstrates how to construct a class that raises events and how to capture those events.

Exceptions
Exception handling philosophy

Execute DOS Application in .Net
Demonstrates how to run a DOS program in C#

File System Watcher
Detects when changes to a file occur and raises an event

Garbage Collection - Dispose - Class Destructors
Demonstrates how and when to implement class destructors and Dispose().

Generics
Overview of .Net 2.0 Generics.

Get Members of an Active Directory Group
Demonstrates how to retrieve the members of an Active Directory group. NOTE: Does not traverse nested groups.

Get Nested Groups that a User is a Member Of
Returns all nested groups that a user is a member of.

Get Path of Executing Assembly
Works on both web apps and WinForms apps - Gets path of an executing assembly

Getting File Properties for Office Documents
Programmatically read and write the custom properties of Office documents Title, subject, etc.

Getting the Current Time in UTC
Getting the Current Time in UTC

Hi Performance Timer
Hi performance timer

How to Embed and Access Resources Inside of Assemblies
Demonstrates how to embed and use resources inside of assemblies.

Installing a Service Programmatically
Demonstrates how to programmatically install a service in C#

Load Assembly and Retrieve Version Number
Demonstrates how to dynamically load an assembly and retrieve it's version number.

Microsoft Enterprise Library - SQL Transaction Example
Demonstrates how to accomplish transactions in the Microsoft Enterprise Library for Data Access

MSMQ - Putting Objects On and Off of an MSMQ
Demonstrates how to put objects on an MSMQ and the retrieve them back into a rehydrated object.

MSMQ - Simple Example
Very simple example of MSMQ

MSMQ Triggers
Explanation of how to build .Net assemblies to be consumed by MSMQ Triggers

NT Service Utilities
Demonstrates how to find, start, stop, pause, and ping a service.

Object Creation Using Factory Pattern
Demonstrates how to employ programming to interfaces and creating objects via a factory instead of direct object creation.

Object Creation Using Factory Pattern (Example 2)
Good simple example of how to use a factory pattern when creating objects

Object Serialization Using BinaryFormatter, SoapFormatter, and XmlSerializer
The code demonstrates how to use a BinaryFormatter, SoapFormatter, and XmlSerializer to serialize and de-serialize an object into Base64 and ASCII strings. Two different methods of using the XmlSerializer are demonstrated.

Open a File in its Registered Application
Demonstrates how to open a file in its registered application.

Performance Counters
Demonstrates how to Install, Use, and Uninstall performance counters.

Preserve Whitespace Characters in Serializable Classes
Demonstrates how to make an object serialize it's properties as XML attributes instead of the default manner, which is with XML elements.

Programmatically Register ActiveX Libraries
Demonstrates how to programmatically register ActiveX DLLs, OCXs, etc. using C#.

Read and Write a Text File One Line at a Time
Demonstrates how to read and write a text file one line at a time.

Read and Write Text File Without Character Translation Problems
Demonstrates how to read and write a text file without encountering character translation (encoding) problems.

Read the Registry in .Net
Demonstrates how to read the registry in .Net

Recursive Directory Crawler
Returns list of all files in a directory tree (uses recursion).

Removing UTF Encoding Characters from XML
The Microsoft .Net XmlDocument object inserts Byte Order Mark characters at the begninning of the XML file. This examples shows how to remove them.

Representing Business Entities (XML, DataSet, Typed DataSet or Custom Classes)
Explanation of various patterns for representing Business Entities with advantages and disadvantages of each.

Retrieve MAC Address, CPU Processor ID, and Operating System Installation Date/Time
Uses WMI to retrieve a computer's MAC Address, CPU Processor ID, and Operating System Installation Date/Time.

Retrieve Running Processes
Routines to retrieve all running processes.

Retrieving Class Properties and Property Values Using Reflection
Demonstrates how to retrieve the properties and their values of a class.

Samantha's Killer AD Class - Excellent
AD class that gets all info (including nested groups) about a user.

Save and Retrieve a File Into and From a Blob
Demonstrates how to save a binay file into a blob field and then retrieve it

Secure LDAP Connection
Shows the connection string needed to make Secure LDAP calls.

Sending Embedded Images in EMail Messages
.Net framework 1.0 and 1.1 do no support embedded images in emails. 2.0 framework does. The 1.0 and 1.1 workaround is to use CDO inside of a COM wrapper.

Serialize an Object into XML
Demonstrates how to serialize an object into XML and load that XML into an XML Document

Serialize and Deserialize an Object With Xml
Shows a very simple means of serializing and deserializing an object with Xml

Session Object (Like ASP.Net Session State)
Demonstrates how to construct a session object which is similar in functionality to the ASP.Net Session object. The object is thread-safe for multi-threaded environments.

Shut Down and Restart Application on Error
Demonstrates how to shut down an application and restart it when an exception occurs.

Simple Encryption/Decryption in C#
Simple encrypt/decrypt using C#. Output is converted to printable characters. You pass a "magic number" into the encrypt and decrypt function, making it a little more secure.

Singleton - Thread-safe
Singleton object - Preferred way to create a thread-safe Singleton object.

Singleton Objects
Demonstrates how to create a Singleton object (one in which only one instance of it exists for multiple clients). NOTE: This one is not thread-safe.

Sorting a DataTable Using a DataView
Demonstrates how to sort a table in a DataSet and iterate through the sorted rows.

Split Multiple Delimited String into it's Components
Parsing routine that splits a string into it's components

Tracing and Assertions
Philosophy of tracing and assertions.

Underlying Connection Was Closed Webservice Exception
Explanation of how to solve the underlying connection was closed webservice exception. Solution posted by Jan Tielens' Bloggings [MVP]

Windows Service Installer - Sets "Allow service to interact with desktop" Flag
Create a Windows Service Installer that sets the "Allow service to interact with desktop" flag

Wizard Using Panels
Demonstrates how to create a wizard using a single winform which contains multiple panels. Handles Next, Previous, Cancel, Finish. Great framework.

Write an Excel Spreadsheet in C#
Demonstrates how to create a native Excel file and write it.

XML Comment Tags for C#
XML comment tags for use in C#

XML Sample
Demonstrates how to read an XML string and process nested elements

XML Serialization of Objects
Demonstrates how to use the XMLSerializer to serialize and deserialize objects.

XSL Transformations in .Net
3 examples of how do perform XSL transformations in .Net

XSL Transformations in .Net (Simplified)
Demonstrates how to perform an XSL transform against an XML document. Note that this uses the simplified StringWriter to get the textual output of the transform. This results in a UTF-16 encoded file, whereas the traditional methods produce UTF-8.


.Net - Visual Studio IDE

Adding an Item to the Visual Studio "Add References" Dialog
Explains how to add an item to the Visual Studio "Add References" dialog.

Database Projects in Visual Studio .NET
Article by Scott Mitchell that explains how to include a database project in Visual Studio .Net

Determinine if an Assembly is Compiled in Debug Mode
How to determine if a DLL is compiled in debug mode

How to Make a Setup Program Automatically Un-Install Itself
Demonstrates how to cause a Setup program to automatically uninstall itself.

NUnit Setup
Sets up current Visual Studio project properties to run under the context of NUnit

Visual Studio Start Page Project List
How to modify the Visual Studio Start Page project list


ASP

Accessing ASP Objects In VB
Demonstrates how to access ASP objects (Session, Request, Response, etc) in VB.

ADSI Samples - Programming Against an NT Domain
Validate NT users, change NT password, see if account is locked out, etc.

Calling COM Components and Passing Parameters ByRef in ASP
When calling VB COM components from ASP and passing parms ByRef, ASP generates a Type Missmatch Error. This sample demonstrates how to get around the problem.

Client-side Validation Using the XMLHTTPRequest Object
Demonstrates how to use XMLHTTPRequest object to call server-side pages to perform client-side validation.

Create DSN Programmatically
Uses VB to create a DSN programmatically

Create Excel File Download (Demonstrates Formulas)
Creates Excel file download without going through external file creation. Creates an HTML table text stream. The down side of this one is that you don't get the grid-lines in excel, even though you do get cells. NOTE: Set response.buffer = true

Create Excel File Download (Prefered)
Creates Excel file download without going through external file creation. Creates a tab delimited text stream. NOTE: Set response.buffer = true

Date/Time Formatting Utilities
Date and time formatting utilities

Display Excel Chart in ASP
Uses ASP to automate Excel to generate chart that is then displayed in the ASP. NOTE: This is for light traffic sites only.

Display Image That Is Contained In Database Field
Displays an image that exists in a blob field in a database table

Display Page 1 to N Pages With Next/Prev Buttons
Demonstrates how to display 10 records per page with next/previous buttons.

Get AD User Information
Retrieves user account information from Active Directory

Open CSV Text File With ADO
Demonstrates how to open a CSV text file with ADO

Read Binary File Using ADODB.Stream
Demonstrates how to use an ADODB.Stream object to read a binary file from the file system

Read/Write Cookies In ASP
Demonstrates how to read and write cookies in ASP

Response.Redirect to Display Images
Demonstrates how to use an ASP to dynamically display images using Response.Redirect.

Running Out of Process EXEs From ASP
Configuration that is necessary to allow IIS to call out of process ActiveX EXEs.

SAML Sample
Demonstrates how to generate SAML Artifact and Assertion. Excellent examples of Base64 and HexToBin conversions as well as how to deterimine a server's time zone.

Script Timeout
Changing the ASP script timeout value

Send eMail Formatted as HTML Using CDONTS
Uses CDONTS to send an email that is formatted as HTML

Send eMail From ASP (CDONTS)
Uses SMTP service (and CDONTS) to send email from an ASP

Upload File To Web Server
Demonstrates how to upload a file from the browser to the web server.

Use ADO Stream Object to Write Binary Data
Uses ADO Stream object to write binary data to the response object

Using MetaData to Include Type Library Constants
Use MetaData instead of Include files to import type library and DLL functions

Using VBScript Class Modules In ASP
Shows how to create a class module in VBScript and use it on an ASP.

Write ADO 2.5 Recordset Directly to Response Obj
Example of how to write an ADO 2.5 recordset directly to the response object using XML

Zip On-The-Fly Within ASP
Demonstrates how to zip files on the fly from within an ASP page. NOTE: Requires ASPExec component, icuSgDldSvd.dll, and WinZip be installed on the web server.


CSS

Changing IE's Scroll Bar Appearance
Style sheet for changing IE's scroll bar appearance

CSS Sample - Font Family, Font Size, Bold, & Links
The correct way of specifying a font family, a point size, and bold with mouse-over effect.

Downloadable Web Fonts
CSS file that demonstrates how to implement a downloadable web font Also, see the MSDN article: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/fontembed/font_embed.asp

How to Force Page Breaks When Printing HTML Pages
Uses CSS page-break directives to force page breaks when printing HTML pages.

Style Sheets - Named Anchor Tag Appearance
Demonstrates how to use named anchor tag styles


Database

ADO Includes
ADO constants

ADO Marshalling
MSDN Article on ADO Marshalling

ADO Providers
Connect strings for ADO using SQL, ODBC, and Jet providers

ADO Samples
Samples for opening and reading an ODBC data source using ADO.

ADO SQL Server Data Type Mapping
ADO to SQL Server datatype mapping

Connect Strings (Named Pipes & TCP/IP)
Demonstrates how to use network libraries to specify use of either Named Pipes or TCP/IP in a connect string.

Create ADO Recordset On The Fly
Create ADO recordset on the fly and populate it with data

Determine Number of Users in MDB
Determine number of active users in Jet database

Determining Installed Version
How to determine the currently installed version of ADO

FileIO - 1 Approach To Handling DB Ops
Uses Append Chunk to handle MDB files

Getting Available SQL Server Names in Visual Basic
Uses SQLDMO to retrieve list of SQL Servers.

How to Enable ODBC Connection Pooling
Steps required to enable ODBC connection pooling in ADO.

Initialize A Database
This code sets up and initializes the CODMANxx.MDB database.

ODBC Connect Strings
ODBC connect strings with and without data source name

ODBC DSN Creation
Programatically create an ODBC data source

Retrieving IDENTITY Value of Newly Inserted Record
Demonstrates 3 ways to retrieve the IDENTITY value of a record that was inserted into a SQL Server table.

Run Access Report From VB
Use VB to open and run a report in an Access MDB.

Save/Get Binary Data To A Jet Database
Reads binary file and saves in Jet database field. Saves binary from Jet binary field and write binary file.


HTML

Create a Page With a Hidden Frame
Demonstrates how to create a page with a hidden and a visible frame

Transparent Iframe
How to create a transparent iframe

Turn Of AutoComplete On Text Fields
Turns off IE's AutoComplete feature for text boxes (most importantly, password boxes).

Web Page With Automatic Download OnLoad
Demonstrates how to fire off a file download when page loads.


Java

Registering a Java Class in COM
How to register a Java class so that it can be called using COM


JavaScript / DHTML

Allow Only Numeric Characters In Textbox
Allow Only Numeric Characters In Textbox (IE only)

Animated Window Opener - Down Then Across - Way Cool
JavaScript that opens a new window that first expands down then across. Really cool.

Bookmark This Page
Sample of how to add a "Bookmark This Page" link to a page.

Browser Detection (Cookies, JavaScript, etc.)
Uses BrowseCap.ini to determine Tables, Frames, Java Applets, Cookies, ActiveX Controls, Brckground sounds, JavaScript and VBScript.

Browser Detection (Ultimate)
JavaScript file to detect browsers. Covers all of it.

Capture Mouse Down - No Text Selection - on Web Page
Captures mouse down to prevent selecting text on a web page

Change Layer Contents Dynamically (NetScape)
How to dynamically change the contents of an element using Document.Write().

Check Caps Lock
Determines whether caps lock is on or off.

Clickable Labels for Radio Buttons and Check Boxes
This sample makes the labels of radio buttons and check boxes clickable, similar to the functionality of VB check boxes and radio buttons.

Closing Browser Windows
6 ways to close browser windows

Combo Box Magic
Dynamically change combo box contents based on another combo box

Confirm Delete On Anchor Tag With Message Box
Displays a message box to confirm deletion of an item that has a "Delete" anchor tag.

Confirm Form Submit With Message Box
Displays a confirmation msgbox to ask if the user really wants to submit the form

Cookie Utilities (JavaScript)