CodeBase
The codebase contains various samples written in diverse languages to demonstrate certain technique’s or solutions. Unless specificaly otherwise stated all samples are original works, and can be freely re-used for your own applications or projects.
ASP (Classic)
- How to read a serverside textfile with ASP code
- Reading and writing data to and from a database
- Sending Email from your webserver
- Server environment variables
ASP.NET
- Adding a delete confirmation to a gridview
- ENTER key behaviour in ASP.NET applications
- Failed to generate a user instance of SQL Server due to failure in retrieving the user’s local application data path
- How to retrieve data from a gridview hidden column
- Retrieving the assembly version information for Winforms and ASP.NET applications
- Selecting a date range on a gridview
- Sending a download
- Sending response.redirect to another window
- Setting the column width on a gridview column
- Uploading files
- W3C Validation errors after adding an imagebutton to a site
C#
- Accessing special folders from your appliction
- Creating a structure type to hold data
- Creating enumerated values
- Delete a record from a table using LINQ to SQL
- Drawing freely on the screen (aka – making a form transparant)
- Enumerating the active forms within an application
- Insert a new record into the database using LINQ to SQL
- List all files in a specific directory
- Running a console command and capturing the output
- Select and Update a single record using LINQ to SQL
- Sorting an in-memory datatable object
Crystal Reports
- Binding a string to a textfield on a report at runtime
- Compare a string field as a date on a report
- Creating a crystal report from an in-memory data table
- Creating a PDF from a crystal report at runtime
- Getting a named day-of-week from a date field
- Preventing growing fields from overwriting data lower on the report
- Setting report margins at runtime
- Setting the zoom level of a crystal report from code
- Supressing a field based on value on a report
- Supressing a group footer based on the number of records in the section
JavaScript
LINQ
- Delete a record from a table using LINQ to SQL
- Getting a binary from an SQL Server with LINQ
- Insert a new record into the database using LINQ to SQL
- Select and Update a single record using LINQ to SQL
- Using LIKE in LINQ to SQL Query’s
PHP
VB.NET
- Applying color to datagridview lines
- Counting records – the fast way
- Creating a context (right-click) menu on a datagridview
- Creating a simple SQL datareader
- Creating a superimposed centered watermarked image at runtime
- Creating a table in memory with typed fields
- Creating a threaded windows service
- Creating enumerated parameter values
- Delete a record from a table using LINQ to SQL
- Detecting a keypress in a console application
- Determine response times from an ip ping
- Determine the local system’s IP address
- Determining the clicked item in a listview
- Disable sorting on a datagridview
- Drawing freely on the screen (aka – making a form transparant)
- Enumerating the active forms within an application
- Find the last ocurrance of a string within another string
- Getting data from an MS Access datatable
- Getting the current date/time from a NIST server
- How to check if a font is present on the system
- How to save changes made to a datagrid
- Importing a CSV file into a table object
- Importing an XML file into a datagridview
- Importing an XML file into a dataset, and mapping the tables, fields and relations
- Importing data from an Excel sheet
- Insert a new record into the database using LINQ to SQL
- Loading a main fom centered on the screen
- Looping and updating a dataset with a table object
- Maintaining the current row in a datagrid while refreshing the tableadapter
- Playing a sound from a resource
- Preventing a form from closing
- Reading and writing binary files
- Reading screen pixels from the main screen, and specific other application windows
- Recursively listing a directory tree
- Repost: printing a form the printscrn way
- Retrieving the assembly version information for Winforms and ASP.NET applications
- Running a console command and capturing the output
- Searching the directory structure for one or more matches of a filename
- Select and Update a single record using LINQ to SQL
- Sending email from vb.net
- Sending raw data to the printer
- Sorting an in-memory datatable object
- Static class implementing a filecopy function while showing a progress bar
- Testing datareader columns for NULL values
- Threading Example
- Usefull tab control events
- Using open file, save file and select directory dialogs
