This topic is locked

Re-usable code.

3/15/2008 6:01:30 PM
ASPRunnerPro General questions
W
Wazup author

I have some code that I'm using mostly with pointers from admin. I'd like to be able to re-use without having to edit pages.
Is there a way I can tell ASPrunner that this code should be included? I guess by this I mean, can I put my ASP pages into a subdir somewhere, or modify one of ASPrunner's pages to reference my code and have ASPrunner automatically include this.
I'm a little concerned that when/if we upgrade, then I'd have to do this all over again. Not that it's that big of a deal, but we are working on other pages that reference com components that we'd like to "Just Use" without hassle.
Thanks.

Sergey Kornilov admin 3/17/2008

You can put your code to header.asp file that won't be overwritten on rebuild.

You can also place it to the separate file and include it in header.asp i.e.
<!--#include file="include/myowncode.asp"-->