web 2.0

ASP/VBScript GetRef()

ASP/VBScript GetRef() Returns a reference to a procedure  that can be bound to an event.

ShotDev Focus:
- Using Asp and GetRef() function.

Example

asp_getref.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<script language="VBScript">
Function fncAlert()
Dim strText
strText = "Welcome to ShotDev.Com"
MsgBox strText
End Function

Set Window.Onload=GetRef("fncAlert")
</script>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_getref.asp

Screenshot

ASP/VBScript & GetRef()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.