• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

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?
0
wrynn
Asked:
wrynn
  • 3
  • 2
1 Solution
 
Bob LearnedCommented:
Do you know about UserControls?

Bob
0
 
wrynnAuthor Commented:
go on...........
0
 
Bob LearnedCommented:
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
0
 
wrynnAuthor Commented:
the answer i was looking for was this:

 <!-- #Include file="inc/includeFile.inc" -->
0
 
Bob LearnedCommented:
All I was trying to say is that, while you got the answer you were looking for, there is so much more power to user controls vs. include files.  But, it's your life and your decision.

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now