473,326 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Where to learn about ASP Classes

I've been searching for some information on the use of Classes in ASP, but
found very little information.

I found this http://www.daniweb.com/tutorials/tutorial19997.html .

Are there more information somewhere online?

Thanks
Nov 20 '07 #1
7 1566
http://en.wikibooks.org/wiki/Active_...ed_Programming
"Bruce" <fake_dont_send@anything_.comwrote in message news:uB**************@TK2MSFTNGP04.phx.gbl...
I've been searching for some information on the use of Classes in ASP, but found very little information.

I found this http://www.daniweb.com/tutorials/tutorial19997.html .

Are there more information somewhere online?

Thanks

Nov 20 '07 #2
http://en.wikibooks.org/wiki/Active_...ed_Programming
"Bruce" <fake_dont_send@anything_.comwrote in message news:uB**************@TK2MSFTNGP04.phx.gbl...
I've been searching for some information on the use of Classes in ASP, but found very little information.

I found this http://www.daniweb.com/tutorials/tutorial19997.html .

Are there more information somewhere online?

Thanks

Nov 20 '07 #3
http://en.wikibooks.org/wiki/Active_...ed_Programming
"Bruce" <fake_dont_send@anything_.comwrote in message news:uB**************@TK2MSFTNGP04.phx.gbl...
I've been searching for some information on the use of Classes in ASP, but found very little information.

I found this http://www.daniweb.com/tutorials/tutorial19997.html .

Are there more information somewhere online?

Thanks

Nov 20 '07 #4
Bruce wrote:
I've been searching for some information on the use of Classes in
ASP, but found very little information.

I found this http://www.daniweb.com/tutorials/tutorial19997.html .

Are there more information somewhere online?
Please keep in mind the fact that ASP is not a language, and that the
information provided by other respondents applies to VBScript ONLY.

The complete list of ASP objects is below. Classes are not listed:
http://msdn2.microsoft.com/en-us/library/ms524716.aspx

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Nov 21 '07 #5
On Nov 20, 10:39 am, "Bruce" <fake_dont_send@anything_.comwrote:
I've been searching for some information on the use of Classes in ASP, but
found very little information.

I found thishttp://www.daniweb.com/tutorials/tutorial19997.html.

Are there more information somewhere online?

Thanks
I studied the HECK out of ASP classes. I spent a lot of time doing it.
Classes in ASP don't really seem to be all that worth it in most
cases. I haven't really found any of my code that benchmarks faster as
a class in ASP. I don't personally waste my time with them ... and I
use a lot of classic asp still. But here is a starter anyway.

<%
'// Class Example - obviously the clas would generally be in a
seperate file
'// The name os this class object.
class exampleClass

'// Variables that only this class can use.
private someVar, someOtherVar, someArray(2,0)

'// Private subroutine that only this class can use.
private sub mySub()

end sub

'// Variable that can be set outside the class with the object.
public anotherVar, yetAnotherVariable, maybeDatabaseConn

'// A subroutine that you can call from outside the object
public doThis()
'// does somethings in here .. and ...
call mySub() '// the private sub for this class
end sub
'// Functions ... private function ... public function ... same way
end class


'// IN USE
dim myObj
set myObj = exampleClass
'// maybe your class is doin database stuff
myObj.maybeDatabaseConn = "DSN=yourdatabase;"

'// or set whatever other variables ... then execute the public
subroutine
with myObj
.anotherVar = "whatever"
.yetAnotherVariable = "whatever"
call .doThis()
end with
set myObj = nothing '// set to nothing when done
%>
Nov 24 '07 #6
Brynn wrote:
On Nov 20, 10:39 am, "Bruce" <fake_dont_send@anything_.comwrote:
>I've been searching for some information on the use of Classes in
ASP, but found very little information.

I found thishttp://www.daniweb.com/tutorials/tutorial19997.html.

Are there more information somewhere online?

Thanks

I studied the HECK out of ASP classes. I spent a lot of time doing it.
Classes in ASP don't really seem to be all that worth it in most
cases. I haven't really found any of my code that benchmarks faster as
a class in ASP. I don't personally waste my time with them ... and I
use a lot of classic asp still. But here is a starter anyway.

Classes are not about performance: they are about reusability and
maintainability.The idea is that encapsulating frequently-used code in
classes makes it easier for that code to be re-used.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Nov 24 '07 #7
"Brynn" <co******@gmail.comwrote in message
news:ab**********************************@v4g2000h sf.googlegroups.com...
On Nov 20, 10:39 am, "Bruce" <fake_dont_send@anything_.comwrote:
I've been searching for some information on the use of Classes in ASP,
but
found very little information.

I found thishttp://www.daniweb.com/tutorials/tutorial19997.html.

Are there more information somewhere online?

Thanks

I studied the HECK out of ASP classes. I spent a lot of time doing it.
Classes in ASP don't really seem to be all that worth it in most
cases. I haven't really found any of my code that benchmarks faster as
a class in ASP. I don't personally waste my time with them ... and I
use a lot of classic asp still. But here is a starter anyway.
There are two primary uses for classes in ASP neither of which have to do
with performance.

1) Manage complexity. There comes a point where the requirements of an
application can reach a level of complexity which can't easily be handled by
procedural approach alone. An OO design helps to manage that and Classes in
VB can help implement an OO design. Of course a level complexity that
requires this would probably be best implemented in another language which
exposes components to be consumed by ASP.

2) Manage indentifier namespace. VBScript does not contain the concept of a
module which contain private variables and procedure not accessible outside
the module. This can be a problem in ASP application which stores libraries
of useful utilities in include files. For any ASP page that wants to
include one or more such libraries ALL functions and variables must use a
unique identifier. This includes functions and variables only actually used
internally by the library.

By implementing a library as a Class the class can expose only those
functions and properties that consuming code need access to. Additional
those public identifiers will not polute the global namespace since they
will now be prefixed by the name of an object variable. This especially
important when you have a team of developers; that don't need to check with
all other developers and all other modules whether a specific name is
available for use. E.g,-
'Include1.asp
<%
Class Include1
Public Function DoSomething()

End Function
End Class
%>

'Include2.asp
<%
Class Include2
Public Function DoSomething()

End Function
End Class
%>

'Consumer.asp
<!-- #include virtual="/library/Include1.asp" -->
<!-- #include virtual="/library/Include2.asp" -->
<%

Dim o1 : Set o1 = New Include1
Dim o2 : Set o2 = New Include2

o1.DoSomething
o2.DoSomething

%>
>

<%
<snipRemoved code not showing anything not already present in link the OP
had already indicated had been read.</snip>
%>


--
Anthony Jones - MVP ASP/ASP.NET
Nov 24 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: CoolPint | last post by:
Standard exception classes in C++ have what() which returns const char * and they have constructors accepting string. Where is that string created and when is the string destroyed? In the...
4
by: light_wt | last post by:
Hi I am taking the 2555 class and a lot of the material is over my head. I don't like the MS's book because there is no step-by-step on interacting with the VS.NET Is there good free resource...
11
by: robbiebell22 | last post by:
I have been looking all over the internet on how to learn C# .net. I have read a couple of books, lots of forums, and tutorials, but i am still at a very big loss as far as trying to write my own...
5
by: Amai | last post by:
I'm ineterested in learning ASP.NET, in conjunction with both C# and VB.NET. However, i don't really know where to start. Are there classes available at local colleges, or do i have to go...
4
by: Amai | last post by:
I'm ineterested in learning C# for Web Service and Developement, in conjunction with both ASP.NET and VB.NET. However, i don't really know where to start. Are there classes available at local...
40
by: dydx13 | last post by:
Hello, I'm currently attending a university majoring in Computer Science. I took C and C++ at a community college and got an A in both classes. That was three years ago. I have not programmed or...
65
by: Chris Carlen | last post by:
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective...
18
by: firewoodtim | last post by:
I need some help in furthering my education in OOP. I have developed a set of PHP scripts that I use in a fairly sophisticated database driven website, but I am not proud of the rather amateurish...
6
by: cj007541 | last post by:
Hey guys, My names Casey. Im 17 and going to be a senior in high school this year. I have already taken a school class in python and it was a really big help for me as it taught me a lot more then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.