Solved

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

Posted on 2006-10-24
5
280 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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