Hi i'm trying to create a .cs file for the template page so I can have a login box along the left nav of my site. I am having a hard time making it work, has anybody done this?
I have a codefile="template.ascx.cs" on the <%control %> tag at the top of the page.
Here is what my template.ascx.cs file looks like:
I get the following error. Does anybody know what the correct base class to extend is? I tried to copy this from default.aspx.cs without luck. Thanks
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).
Code:
using System;
using System.Xml;
using System.Xml.Xsl;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.SqlClient;
using System.Globalization;
using AspDotNetStorefrontCore;
using ASPDNSFControls;
using AspDotNetStorefrontGateways;
using System.Collections.Generic;
using AspDotNetStorefrontCore.ShippingCalculation;
namespace AspDotNetStorefront
{
public partial class TemplateBase : Control
{
static void refreshControl()
{
headerlabel1.Text = "whoo";
}
}
}