Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Using includes with ASP.NET

Reply
Thread Tools

Using includes with ASP.NET

 
 
Jay
Guest
Posts: n/a
 
      01-13-2004
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

 
Reply With Quote
 
 
 
 
Si
Guest
Posts: n/a
 
      01-13-2004
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
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print just numbers includes in Subject using POP3Client Module. eng.john84@gmail.com Perl Misc 0 04-10-2007 01:17 AM
using includes causes error thersitz ASP .Net 1 03-12-2007 10:21 PM
Using C::Scan : How to ignore #includes ? Abhinav Perl Misc 8 09-30-2004 09:00 AM
WiFi Hotspot Directory now includes over 12,000 sites including Intl site! Riverwalk Mobile Wireless Networking 0 09-16-2004 02:45 PM
includes in ASP .NET Geraldine ASP .Net 1 10-29-2003 02:06 PM



Advertisments