B
Brad
Hi,
I've read that one shouldn't include ADO objects in the Global.asa for the
sake of performance, but would user-defined classes cause the same kind of
performance hit? Assuming that they wouldn't, is it possible to do it?
I can't seem to figure out how to include them, nor find any reference to it
in msdn.
Is there a way to do this? Or should I create a slew of Session variables?
Yuck.
<script language='VBScript' runat='server'>
public obj
class Something
public Name
public Value
Sub Class_Initialize()
Name = "Joe"
Value = "Blow"
end Sub
End class
Sub Session_OnStart()
' This won't work
set obj = new Something
' Either will this
set Session("obj") = new Something
End Sub
</script>
Thanks.
I've read that one shouldn't include ADO objects in the Global.asa for the
sake of performance, but would user-defined classes cause the same kind of
performance hit? Assuming that they wouldn't, is it possible to do it?
I can't seem to figure out how to include them, nor find any reference to it
in msdn.
Is there a way to do this? Or should I create a slew of Session variables?
Yuck.
<script language='VBScript' runat='server'>
public obj
class Something
public Name
public Value
Sub Class_Initialize()
Name = "Joe"
Value = "Blow"
end Sub
End class
Sub Session_OnStart()
' This won't work
set obj = new Something
' Either will this
set Session("obj") = new Something
End Sub
</script>
Thanks.