Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2006-10-24
5
273 Views
Last Modified: 2013-11-18
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
Comment
Question by:wrynn
  • 3
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17797744
Do you know about UserControls?

Bob
0
 

Author Comment

by:wrynn
ID: 17797860
go on...........
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17797940
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
 

Author Comment

by:wrynn
ID: 17822503
the answer i was looking for was this:

 <!-- #Include file="inc/includeFile.inc" -->
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 17825367
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question