Hie Guys
I am getting the following error while going thru the Book ASP.NET 2.0 Website Programming Problem Design Solution.
My code is exacly the same as that in the code download but i am getting this error.Please help.

c:\Inetpub\wwwroot\BeerHouse\Controls\ThemeSelecto r.ascx.cs(14): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)
The Code behind for the Themeselector.ascx.cs is as follows
namespace TB.TheBeerHouse
{
public partial class ThemeSelector : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
//create ddl controls' static client side ID which will be maintained between postbacks
if (Globals.ThemeSelectorID.Length == 0)
Globals.ThemeSelectorID = ddlThemes.UniqueID;
//get the themes from Helpers class in App_Code folder and bind to ddl
ddlThemes.DataSource = Helpers.GetThemes();
ddlThemes.DataBind();
ddlThemes.SelectedValue = this.Page.Theme;
}
}
}
The Control directive for the ThemeSelector user control is like
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ThemeSelector.ascx.cs" Inherits="ThemeSelector" %>
Could someone tell me how to fix this error.
Thanks.