N
news.microsoft.com
Getting really frustrated, I've been trying for 6 hours now! Got this very
simple web app having a main .aspx page which has a user control (added with
the Register directive) and the TemplateTop.ascx wich works 100% until I try
adding codebehind, eg;
<%@ Control Codebehind="TemplateTop.ascx.cs" Inherits="TemplateTop" %>
And in the TemplateTop.ascx.cs file:
using ...
public class TemplateTopCB : UserControl
{
public Literal MyLiteral1;
void Page_Load(object sender, System.EventArgs e)
{
MyLiteral1.Text = "success!";
}
}
The error is:
Parser Error Message: Could not load type 'TemplateTopCB'.
simple web app having a main .aspx page which has a user control (added with
the Register directive) and the TemplateTop.ascx wich works 100% until I try
adding codebehind, eg;
<%@ Control Codebehind="TemplateTop.ascx.cs" Inherits="TemplateTop" %>
And in the TemplateTop.ascx.cs file:
using ...
public class TemplateTopCB : UserControl
{
public Literal MyLiteral1;
void Page_Load(object sender, System.EventArgs e)
{
MyLiteral1.Text = "success!";
}
}
The error is:
Parser Error Message: Could not load type 'TemplateTopCB'.