borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Error while debugging ASP.NET project during development)Next Topic (Accessing client's directory structure) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Include File
Poster Message
sth_y
Level: Guest


icon Include File

Hi, How can I include say, 1.aspx file inside 2.aspx file ?
I need it b'cos I'm gonna use 1.aspx on every page of my site.

Regards

31-01-2003 at 08:42 AM
| Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 530
icon Re: Include File

The syntax in the old ASP pages was:

<!--#include file="FileName.asp"-->


but I don't know if it works for ASP.NET too
Let me Know!

[Edited by admin on 31-01-2003 at 09:47 AM GMT]

____________________________
AndreaVB

31-01-2003 at 08:47 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
sth_y
Level: Guest

icon Re: Include File

I have already tried the same. But unfortunately , it doesn't work.

Regards

31-01-2003 at 08:50 AM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Include File

I did a quick search on google, and everything said the

<!-- #include file="filename.ext" -->
<!--#include virtual="filename.ext"-->

works in ASP.NET. The virtual may work over the include.

There may be other problems, as in the server not finding the file.
If the file's not in the same directory, try it in the directory (and modify the file in the include line) to see if it works.
Make sure all the settings on the server are setup properly. There's always a potential problem of security permissions.
Unfortunately I don't have a IIS server on my computer, so I can't give specifics.

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

31-01-2003 at 08:13 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ASP.Net : Include File
Previous Topic (Error while debugging ASP.NET project during development)Next Topic (Accessing client's directory structure) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder