Solved

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

Posted on 2006-10-24
5
269 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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 …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 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