VS2005/C#/Web Site : How do I creating multiple partial class files

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top