Your page directive does not seem valid. Did you copy this from a
VB page or one with Code Behind?
Your method Page_Load doesn't fire because you don't set up a handler for the Page's Load event. You can do this programmatically, or let the run-time handle it:
<%@ Page language="c#" EnableViewState="false" EnableViewStateMac="false"
AutoEventWireup="true" %>
With this highlighted option set to true, the run-time will hook up the Page_Load handler for you automatically.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.