J
John Mott
Hello all,
I'm trying to break up a large CodeFile .cs file into multiple pieces using
partial classes. I'm getting compiler errors which act as if it didn't merge
the multiple files.
in doing searches on this problem i saw hints related to setting namespaces
on the partial classes but i couldn't get it to work.
i had thought that it would work this way:
existing test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs"
Inherits="test" %>
existing test.aspx.cs:
public partial class test: System.Web.UI.Page { ... }
and, what i had hoped would work would be:
test2.cs:
public partial class test: System.Web.UI.Page { ... }
I'm missing something obvious. Can anyone help?
thanks,
john
(e-mail address removed)
I'm trying to break up a large CodeFile .cs file into multiple pieces using
partial classes. I'm getting compiler errors which act as if it didn't merge
the multiple files.
in doing searches on this problem i saw hints related to setting namespaces
on the partial classes but i couldn't get it to work.
i had thought that it would work this way:
existing test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs"
Inherits="test" %>
existing test.aspx.cs:
public partial class test: System.Web.UI.Page { ... }
and, what i had hoped would work would be:
test2.cs:
public partial class test: System.Web.UI.Page { ... }
I'm missing something obvious. Can anyone help?
thanks,
john
(e-mail address removed)