Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle #includes

Status
Not open for further replies.

LoveOpnSrc

Programmer
Feb 6, 2008
14
US
Hi,

I am working on a project to add new functionality, and they originally wrote this application in classic .asp.

Now I want to had update a couple of files, but one of them has 16
Code:
<!--#INCLUDE VIRTUAL="/something.asp" -->
. is there any way I can get around this slight issue I am having? adn some of the original 16 also have
Code:
 <!--#INCLUDE VIRTUAL="/something.asp" -->
in them

Thanks in advance.
 
are you upgrading a site from classic asp to asp.net? I'm assuming you are using c# as the server language.

you have some options for includes depending on what approach you are using for page control (webforms or mvc). with webforms you would use either a master page or a UserControl. with an MS MVC application you would use either a master layout or Area. If you are using Monorail you would use either a Layout or ViewComponent.

Master page, Master layout and Layout usually control over all page layout, css, js, etc. UserControls/Areas/ViewComponents contain chunks of logic. depending on why the include file does will depend on how it can be implemented in one of the various asp.net frameworks.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Hi Jason,

My issue is I am not doing a full website upgrade from classic asp to asp.net using c#. I am sorry for not mentioning that part. My goal is to plug some .net web pages in when new functionality needs to be created and in time upgrade the whole site like this. The PM does not have time to allow me to upgrade the entire application, just this on little piece, so between the "includes" and trying to work with the FDF toolkit... *sigh* lol.... This is why I am looking for an easier way to manage the includes.... thanks for those tips by the way...

Regards,
Ryan
 
you might try googling asp with asp.net to see if there is a way to get this to work. other than that you will probably have some duplication between asp and .net code while migrating parts.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top