include file asp.net

S

Selen

I want to use include file...I am usung following codes.But it gives error:
There can be only one page directive .What can I use for include file?I am
using Asp.Net C#

<!-- #include file=".\documents\AllDoc.aspx" --> or
I tried
<!-- #include virtual=".\documents\AllDoc.aspx" -->
yazdýðýmda
thank you...
 
S

Sharon

<!--#include file="fileName" -->
the syntax you are using is ok.
the include tag should reside outside any code block (in the html section).
what error are you receiving?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

include file 1
include file 3
How to include external file ? 2
include .ascx into a C# file 2
# include directive 1
How to include an executable in the c# console project 3
writing ASP.NET code 3
Class vs. DLL 11

Top