Image representing the FAQs category

Retrieve the Current Run-Time Directory of the .NET Framework

Published 20 years ago

This snippet shows you how to retrieve the directory of the "current" .NET Framework. The path returned is the location of the version of the .NET Framework that your application is using.

Read on ...
Image representing the FAQs category

How Do I Enable Visual Styles in My .NET Win Forms Application?

Published 20 years ago

With the .NET Framework 1.0 it was already possible to enable Visual Styles for your .NET Windows Forms so the application took on that shinny new Windows XP look. Enabling Visual Styles was quite a hassle, though. You had to create a manifest file that contained a lot of gobbledygook and it wasn't as straight-forward as you'd hope.
With the .NET Framework 1.1, however, things have become much easier.

Read on ...
Image representing the FAQs category

How Do I Precompile an ASP.NET Whidbey Application?

Published 20 years ago

UPDATE (2005-12-06): The compilation features presented in this article are obsolete. It's recommended that you look at Web Deployment Projects instead.

Unlike Web sites created with Visual Studio .NET 2002 or 2003, there is no need to do a full compile of the project whenever something has changed in your site. The new Code Behind feature and the Code directory used in ASP.NET Whidbey allow you to make changes without recompiling. As soon as the changed page gets requested, the .NET FRamework will recompile the page on the fly.

However, it is sometimes useful to compile the application right after you have deployed it. One reason for this precompilation is speed. Another is code protection. A compiled application does not expose its source in the ASPX pages any longer. There are two ways to compile an application at deployment time: In-place compilation and Precompilation for Deployment

Read on ...
Image representing the FAQs category

How Do I Print From Internet Explorer Without Raising a Confirmation Dialog?

Published 20 years ago

Update!! 11-29-2005
There seems to be a problem with the code presented in this article, so don't rely on it work anymore. When you click the print button you get an error and nothing gets printed.

So far, I haven't been able to isolate the problem or come up with a solution. It looks like this problem is caused by some security mechanism in Windows XP Service Pack 2. I haven't tested various versions of IE and Windows XP yet, but I am sure it doesn't run on IE 6, SP2 with Windows XP SP2 (well, it doesn't run on *my* IE 6, SP2 with Windows XP SP2 ;-) )


In some scenario's, it could be useful if you were able to print a page from within the browser, without the Print dialog popping up, and without the user confirming the print operation.

Read on ...
Image representing the FAQs category

How Do I Select Duplicate Records from a Database Table

Published 21 years ago

This T-SQL snippet allows you to select duplicate records from a database table. The example assumes that the column Id is used to determine whether a record has a duplicate. If multiple columns determine whether a record has a duplicate or not, simply expand the SELECT list and the GROUP BY clause.

Read on ...
  • «First
  • Previous
  • 1
  • Next
  • »Last

Mobile: False

Crawler: True

I: False