Break into Debugger when Exception is thrown even if you are using try catch statements.
From Visual Studio, hit CTRL + ALT + E. Then check the “Thrown attribute of the Common Language Runtime Exceptions.
Edit as required…
USE master go IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'tCalendar') BEGIN DROP TABLE tCalendar END go CREATE TABLE tCalendar ( DateID INT IDENTITY(1,1) CONSTRAINT tCalendar_PK PRIMARY KEY CLUSTERED, DATE DATETIME, Holiday BIT DEFAULT 0, Workday BIT DEFAULT 0) go CREATE UNIQUE NONCLUSTERED INDEX tCalendar_date_N_Idx ON tCalendar(DATE) go --Populate all days DECLARE @n INT DECLARE @maxn INT DECLARE @begindate DATETIME SET @n =1 SET @maxn=36500 -- Number of days added to the calendar SET @begindate =CONVERT(DATETIME,'01/01/1995') -- Initial date for the first run is todays date -- or Jan 1st SET @begindate =@begindate -1 WHILE @n <= @maxn BEGIN INSERT INTO tCalendar(DATE) SELECT @begindate+@n SET @n=@n+1 END --update the holiday and workday flags go UPDATE tCalendar SET holiday=1 WHERE DATENAME(dw,DATE) in ('Saturday','Sunday') go UPDATE tCalendar SET workday=1 WHERE holiday=0 go SELECT * FROM tCalendar
With the new release of Visual Studio (VS) 2005, you would think that it would have full support for classic ASP when working in a directory. This is not the case. There are some hacks out there, however none are fully functional and some require that you set the page directive on every page you want highlighting and intellisense. Of course this will break some of your pages.
For those who want the power of VS (mainly Intellisense), you still need to use vs 2003 until MS makes a fully functional .asp template for VS 2005.
This tutorial will walk you through the process of creating a Solution that allows you to edit your classic ASP in VS 2003. The site must be accessible though windows explorer (C:\ or mapped drives).
Now when you start the solution, all the sites and files will be listed from within VS 2003. You now have html, javascript, and vbscript intellisense. You also get param lists when you call functions/subs that are on the same working page. Sweet!
Notes: