473,320 Members | 1,821 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.

Using includes with ASP.NET

Jay
I have a situation where using includes in an ASP.NET page does what I need. I know that someone understandably is going to say why don't you use UserControls. There are two reason. UserControls do not have any design time support and the logic of what I am trying to do lends itself nicely to includes. Master Pages will provide the design time support I need when they are available.

I am using a statement like the following:

<!-- #include virtual="/MCL/Template/Foo.inc"-->

MCL is the name of my virtual directory.

Here is the problem: This works fine for both asp and aspx pages on my servers, but when I publish my site to another server in my company the include only works with asp pages, not with aspx pages. For my local servers I am using both IIS 5.0 and 6.0. For the server where the include does not work IIS 5.0 is being used. The server in question unfortunately is not local.

Suggestions of what to look at?

Jay

Nov 18 '05 #1
1 1067
Si
Are u giving the same path in the server also ? If so have
u created the folders were it is looking for the
file "foo.Inc."

If so make sure u have permissions to that folder.

hope this helps.
Si
-----Original Message-----
I have a situation where using includes in an ASP.NET page does what I need. I know that someone understandably
is going to say why don't you use UserControls. There are
two reason. UserControls do not have any design time
support and the logic of what I am trying to do lends
itself nicely to includes. Master Pages will provide the
design time support I need when they are available.
I am using a statement like the following:

<!-- #include virtual="/MCL/Template/Foo.inc"-->

MCL is the name of my virtual directory.

Here is the problem: This works fine for both asp and aspx pages on my servers, but when I publish my site to
another server in my company the include only works with
asp pages, not with aspx pages. For my local servers I am
using both IIS 5.0 and 6.0. For the server where the
include does not work IIS 5.0 is being used. The server
in question unfortunately is not local.
Suggestions of what to look at?

Jay

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Derek Mortimer | last post by:
This is my first attempt to join a user group. I run an iMac and have recently upgraded to OSX, OfficeX, after years of problems. I am having difficulties with Find, or maybe do not understand its...
4
by: Patrick | last post by:
I have an ASP site with about 50 ASP files, all of which are currently including a common "includes.asp" file near the top of the file, responsible for generating the <HEAD/> section of the HTML ...
3
by: Bosch News | last post by:
Hello, we are looking for a way to load in an existing html-file different txtfiles, which includes html-commands. Example(Not a real server): We want to load a layout.htm with an parameter...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
8
by: Jim | last post by:
Hi: Do we have some common style for includes when working on a project with lots of c and h files. Wat I mean is do we have a rule in C when a file includes several files and those file in turn...
4
by: Pawel Janik | last post by:
Hello! I was recently worked on building quite complicated web app. Everything was ok, it was quite good tested using most popular browsers (IE6.0, Firefox/Mozilla, Opera). I have problem with...
3
by: Jeff | last post by:
I have an asp page. Now I know this is sortof OT, but I am not sure of the forum to get an answer. I have an include on this asp page <!-- #include file=\forum\includes\consts-inc.asp --> ...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
1
by: JRough | last post by:
I have includes at the top of the file and I have inline includes also includes in mysql queries. For example: include './includes/config.inc.php'; include $include_path.'dates.inc.php';...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.