473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.
Feb 21 '08 #1
1 889
Shashi Sadasivan
1,435 Expert 1GB
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
}
Feb 22 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Tom Cat | last post by:
Is there anything wrong with using a lot of include files? On one part of my website, I have a form. The page it posts data to, includes a different file based on some of the values. The...
11
by: Marc Ferry | last post by:
I already posted this mail in comp.sys.hp and comp.sys.hp.hpux but had no response. As this problem might be present on other OSes than HP-UX 10.20, I crosspost it here, in the hope of getting an...
7
by: Andre | last post by:
I want to condition what include files are included in an web page (.aspx). Something like: if (condition1) { <!-- #Include File='file1.htm' --> } else if (condition2) { <!-- #Include...
1
by: | last post by:
I'm converting a web application from traditional asp to dotnet. In our report writer module, we make calls to a number of include files, in order to set parameters for which report is due to be...
1
by: Don Wash | last post by:
Hi All! I'm having trouble with several ASPX files included in my main ASPX page. Each of the ASPX file have corresponding Page_Load event and I get the error saying it is conflicting when the...
4
by: Marcel Balcarek | last post by:
I am converting an ASP page to ASP .NET. The original has the following: #INCLUDE FILE="logAction.asp" The included file holds some commonly used methods. When I rename it to aspx files and...
1
by: IGotYourDotNet | last post by:
I have a .aspx page that has a datagrid on it and I want to use this grid on several pages but i don't want to have to code for it on every page. How can I include the .asp page onto another .aspx...
3
by: Wayne Wengert | last post by:
I am rewriting some ASP pages to move them to ASP.NET (VB). The old pages had some include files such as one that had the subroutine to create a connection as well as the code that invoked that...
2
by: Ramon Rocha | last post by:
Dear friends, How do I do to includes files .aspx in ASP.NET pages <script></script>? Ex: config.aspx ------------ Dim strLanguage as string strLanguage = "en-US"
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.