Retrieving Table Size in SQL Server
Use this handy tip to determine the size of your SQL Server tables, which can be very useful for estimating the size and growth of a database over time.
ASP.NET Workaround: Calling a JavaScript Function from a HyperLinkField in a GridView
You can call a JavaScript function when a user clicks a HyperLinkField in a GridView control—you just need to use this workaround.
Use Enumeration Instead of SAFEARRAY to Get an Array's Elements
C++'s SAFEARRAY is difficult to use. A better option is to enumerate an array's elements by repeatedly calling your own custom enumeration function and incrementing the element index.
Detect Recursive Calls in Your .NET Code
Using System.Diagnostics, you can check the recursion levels in your code.
Quickly Determine Whether a Column Is Fully Visible in a DataGridView
Find out whether a DataGridView column is partially hidden.
Create ASP.NET Dynamic Hyperlinks from URLs Stored in Web.Config
It's useful to store URLs outside of your application code, because they can change.
Add an Image Command Field to a GridView at Runtime in ASP.NET
Programmatically adding an image command field to a GridView is relatively easy. This tip shows how.
The Best Way to Hide a Column in a DataGrid
A better approach than "hiding" columns in a DataGrid is simply to avoid creating the columns in the first place, as shown in this tip.
A Better Way to Retrieve the ID of the Last Inserted Record
An update to a previous tip on retrieving the ID of the last inserted record, this version uses less code and avoids a search of the jobs table.
Static Class Values Are Valid Even Without a Main Method
This example shows how a static block can work even without a main method.