Build One Application Version for Both Windows XP and Windows Vista
When you build C++ applications using Vista-specific APIs and the Windows SDK for Vista, they won’t run on Windows XP. That’s because when the executable loads the system DLLs at
When you build C++ applications using Vista-specific APIs and the Windows SDK for Vista, they won’t run on Windows XP. That’s because when the executable loads the system DLLs at
The following steps explain how to serialize any .NET object into a JSON string. This tip uses the .NET 3.0 Framework. You’ll find this capability particularly helpful in applications that
The following SQL query returns the size of each table in the specified database. USE sp_MSforeachtable @command1=’EXEC sp_spaceused ”?”’,@whereand=’or OBJECTPROPERTY(o.id, N”IsSystemTable”) = 1′ Here’s how it works. SQL Server’s system
If you place a HyperLinkField in a GridView in an ASP.NET page and link it to a JavaScript function, you’ll find that it doesn’t work properly. The problem is that
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. When the
It’s easy to determine whether a DataGridView column is invisible—just check its Boolean Displayed property. However, the Displayed property returns True even when the column is only partially visible in
Consider storing any URLs used by your application in the web.config file?where you can easily update them?and then using them to create hyperlinks in your web site dynamically. To do
Here’s a way you can check whether the current method is recursive. The following method returns True when your application is in a recursive method: Public Function CheckRecursion() As Boolean
It’s relatively easy to add an Image Command Field to a GridView programmatically. Here’s how: // in C#if (!Page.IsPostBack){ CommandField field = new CommandField(); field.ButtonType = ButtonType.Image; field.SelectImageUrl = “~/Images/MyPic.GIF”;