Hi there,
This is code from a ASP.NET 1.x page, which will not run as is on 2005
For example, you need to change the page directive attribute of Codebehind to CodeFile. There may be more errors though. The easiest things is to create a new page in VS 2005, and then manually copy the relevant parts from the old page to the new page. Alternatively, you can use the upgrade wizard to upgrade your old site to VS 2005 / .NET 2 format.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004