include file

  • 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...
 
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...
 
Back
Top