Include files in the .aspx section of .Net program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrmpat654
    New Member
    • Feb 2008
    • 1

    Include files in the .aspx section of .Net program

    Using include files in the .asp portion of the code is great, but I have a lot of code that I want to put into an include file for the .aspx portion of the code. I can't believe this is not possible, but I can't find anywhere that this can be done.

    I have a lot of programming logic that I need in many programs.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Do you mean that your class file is large that you want ot split the file in more than one file?

    have a look at partial classes.

    Whenever you want to create another file which will contain code create a partial class of that.

    public class MyClass{

    }

    public partial MyClass
    {
    //more code here
    }

    Comment

    Working...