Reputation: 1592
Is it possible to create customer classes in classic asp (vbscript) like you can in asp.net with c#?
Upvotes: 0
Views: 2393
Reputation: 2845
Yes it is possible. You can use a class file . All you need to do is write your function on a file. Suppose the name of your file is func.asp . Write all your functions or procedures in the file "func.asp" and use it
<!-- #include file ="subs_functions.asp" -->
Write the above line in all the pages where you want to use the functions written on "func.asp page.
If your class file is in the server(root folder) the code will be something like
<!-- #include virtual ="\YourFolderNames\myfilename.asp" -->
Upvotes: 0
Reputation: 1564
Apparently it is. And here is an ASP 101 article on using them with ASP.
Upvotes: 2