T
thisis
Hi All,
i have this.asp page:
<script type="text/vbscript">
Function Body_Onload()
' create the object
Set obj = Server.CreateObject("UploadImage.cTest")
' use method of the object
Body_Onload = obj.cTestDelete
Set obj = Nothing
End Function
</script>
<html>
<body onload="Body_Onload()">
</body>
</html>
the this.asp gives an Error while running:
Line 4
Char 1
Error Object required 'Server'
Code 0
URL http://127.0.0.1/this/this.asp
my Question:
How to create a Server Object in a Function?
i have this.asp page:
<script type="text/vbscript">
Function Body_Onload()
' create the object
Set obj = Server.CreateObject("UploadImage.cTest")
' use method of the object
Body_Onload = obj.cTestDelete
Set obj = Nothing
End Function
</script>
<html>
<body onload="Body_Onload()">
</body>
</html>
the this.asp gives an Error while running:
Line 4
Char 1
Error Object required 'Server'
Code 0
URL http://127.0.0.1/this/this.asp
my Question:
How to create a Server Object in a Function?