Hi there,
Take a look at this:
public BasePage()
{
this.PreRender += new EventHandler(Page_PreRender);
this.PreInit += new EventHandler(Page_PreInit);
}
}
private void Page_PreInit(object sender, EventArgs e)
{
Notice the last } before private void Page_PreInit?
It shouldn't be there; right now it closes the BasePage class so the code that follows it is no longer in a class and this the compiler "Expect[s a] class, delegate, enum, interface, or struct".
Simply remove it and you're good to go.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.