# include directive

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two C# aspx pages( base.aspx and newfile.aspx

1. newfile.aspx only contain
=======================

<
Response.Write(Session["strUsrId"])
%

=======================

There is no newfile.aspx.cs file assocaited with it. only newfile.aspx

2. base.aspx contains ( all aspx page info + the below dirctive

========================================

<!-- # include file = newfile.aspx --
========================================

this page has every thing assocated with it (class file + resource file + all the required code

Does the above code is ok for performance
or there is any performance bottleneck in using the # include directive in .aspx page as above

Please hel

can i allowed to go forward and use the abov

Regard
Sameer
 
Hello Sameer,

This directive is actually from SSI (server-side include), not from ASP .NET
I'd use inheritance or .ascx controls instead.
 
Back
Top