Link to home
Start Free TrialLog in
Avatar of wrynn
wrynn

asked on

server side includes with vb.net and asp.net 2.0

how do i do a server side include using vb.net and asp.net 2.0?  if i include a separate file, does that separate file need to have a codefile attribute referincing my .vb file at the top or can just my default.asp have it?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Do you know about UserControls?

Bob
Avatar of wrynn
wrynn

ASKER

go on...........
Reference:

Smart headers and footers using ASP.NET User Controls
http://www.xefteri.com/articles/show.cfm?id=20

<Quote>We can still use include files in ASP.NET in pretty much the same way as classic ASP if we want to. However, User Controls offer greater flexibility, reliability and speed. We'll see this as we create a header User Control for this site.</Quote>

Bob
Avatar of wrynn

ASKER

the answer i was looking for was this:

 <!-- #Include file="inc/includeFile.inc" -->
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial