I
Ilyas
Hi
I have a large code behind for one of my aspx pages. I want to split
this .cs file into several partial classes so that each partial class
can be worked on by a different developer.
My page is called Main.aspx and so by code behind is Main.aspx.cs
I have created a new partial class with the defintion
public partial class PartialClasses_Main : System.Web.UI.Page
and when I compile this I get the error
Warning 1 The type 'PartialClasses_Main' in 'c:\Windows\Microsoft.NET
\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs' conflicts with the imported
type 'PartialClasses_Main' in 'c:\Windows\Microsoft.NET\Framework
\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Code.yj3wcm--.dll'. Using the one in 'c:\Windows
\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs'. c:\Windows\Microsoft.NET
\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs 128
If I remove my partial class defintion - "public partial class
PartialClasses_Main : System.Web.UI.Page
" the error goes away.
What I want to do is to have my code behind split over seversal files
using partial classes - can I do this and if so what steps do I need
to take?
I have a large code behind for one of my aspx pages. I want to split
this .cs file into several partial classes so that each partial class
can be worked on by a different developer.
My page is called Main.aspx and so by code behind is Main.aspx.cs
I have created a new partial class with the defintion
public partial class PartialClasses_Main : System.Web.UI.Page
and when I compile this I get the error
Warning 1 The type 'PartialClasses_Main' in 'c:\Windows\Microsoft.NET
\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs' conflicts with the imported
type 'PartialClasses_Main' in 'c:\Windows\Microsoft.NET\Framework
\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Code.yj3wcm--.dll'. Using the one in 'c:\Windows
\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs'. c:\Windows\Microsoft.NET
\Framework\v2.0.50727\Temporary ASP.NET Files\testaspnet
\baeccd90\7a5a9554\App_Web_j-qc05ni.0.cs 128
If I remove my partial class defintion - "public partial class
PartialClasses_Main : System.Web.UI.Page
" the error goes away.
What I want to do is to have my code behind split over seversal files
using partial classes - can I do this and if so what steps do I need
to take?