Chapter 12 Management.reviews is not allowed bc it does not extend system.web.ui.page
Hi all,
Using the code out of the book seems to throw an error in firefow
tomeemil.management.reviews is not allowed because it does not extend the class system.web.ui.page
using System;
using System.Collections;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class Management_Reviews : System.Web.UI.Page
{
protected string GetBooleanText(object booleanvalue)
{
bool authorized = (bool)booleanvalue;
if (authorized)
{
return "yes";
}
else
{
return "no";
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
I tried deleting the inherits function but that seems to create another issues whereby the compiler can't see the lblAuthorized value.
Thanks in advance for any help.
Tomche
|