B
Bob
I am getting this error when trying to use a custom property in my page
directive:
Error parsing attribute 'test': Type 'System.Web.UI.Page' does not have a
public property named 'test'.
What am I doing wrong?
Thanks
===========================================
default.aspx
===========================================
<%@ Page Language="C#" CodeFile="mycorp.page.cs" Inherits="MyCorp.Page"
Test="abc" %>
<HTML>
</HTML>
===========================================
mycorp.page.cs
===========================================
namespace MyCorp
{
public partial class Page : System.Web.UI.Page
{
private String _test = String.Empty;
public String Test {
get { return _test; }
set { _test = value; }
}
}
}
directive:
Error parsing attribute 'test': Type 'System.Web.UI.Page' does not have a
public property named 'test'.
What am I doing wrong?
Thanks
===========================================
default.aspx
===========================================
<%@ Page Language="C#" CodeFile="mycorp.page.cs" Inherits="MyCorp.Page"
Test="abc" %>
<HTML>
</HTML>
===========================================
mycorp.page.cs
===========================================
namespace MyCorp
{
public partial class Page : System.Web.UI.Page
{
private String _test = String.Empty;
public String Test {
get { return _test; }
set { _test = value; }
}
}
}