kurupt_89
kurupt_89

Reputation: 1592

Vbscript classic asp custom classes

Is it possible to create customer classes in classic asp (vbscript) like you can in asp.net with c#?

Upvotes: 0

Views: 2393

Answers (2)

polin
polin

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

Don Zacharias
Don Zacharias

Reputation: 1564

Apparently it is. And here is an ASP 101 article on using them with ASP.

Upvotes: 2

Related Questions