include file

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...
 
M

Matt Hawley

You should not use "include" files in ASP.NET because they don't get compiled into the assembly. Instead, you should use UserControls to encapsulate certain UI pieces.

Also - note that your code doesn't work, mainly because you're trying to include ASP.NET WebForms within ASP.NET WebForms.

Matt Hawley, MCAD .NET
http://www.eworldui.net

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...
 

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


Top