Classic ASP port - how to replace #INCLUDE (.inc) files

We are porting a classic ASP application to ASP.NET. What do we do with #INCLUDE (.inc) files? Now they cause build errors because ASP.NET considers the variables to be "not declared."

+3
source share
2 answers

You did not specify what is in the .inc files. Suppose that there are many definitions of constants and several auxiliary functions.

There are several options that you might consider.

  • Often there is one .inc that is included in all or most ASP pages.
  • .inc ASP, .

1 , Page, .inc . ASP- ASP.NET , Page.

2 App_Code, ( VBScript, , .inc). ASP-ASP.NET, , .inc , ().

, - .master ASP- .

+2

, ASP:

 <!--#include virtual="/include/flash-check_inc.asp"-->
+1

Source: https://habr.com/ru/post/1732589/


All Articles