include file asp.net

  • Thread starter Thread starter Selen
  • Start date Start date
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...
 
<!--#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

Back
Top