ASP Source Code

ASP File: jscript/general/createobj/bean.asp

 
   ASP Script
   Comments
   HTML and Text

<%@language=jscript%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Developer Studio">

<title>Document Title</title>
</head>
<body>
<p align="right"> <big> <a href="default.html"> Go Back </a> </big></p>
<p><big>Comment:</big> Reference to Bean sunw.demo.buttons.DemoCreateObject, and access its properties and Methods </p>
<br>
<%
var objinfo
objinfo =Server.CreateObject("sunw.demo.buttons.DemoCreateObject")

Response.Write( "<p> Default proerties is : <big>")
Response.Write( "<p> Name = " + objinfo.name)
Response.Write ("<p> Address = " + objinfo.address)
Response.Write ("<p> Age = " + objinfo.age)
Response.Write ("<p> Salary = " + objinfo.salary + " </big>")
objinfo.name = "wangwu"
objinfo.address = "China"
objinfo.age = 34
objinfo.salary = 6543.43
Response.Write ("<p> Modified proerties is : <big>")
Response.Write ("<p> Name = " + objinfo.name)
Response.Write ("<p> Address = " + objinfo.address)
Response.Write ("<p> Age = " + objinfo.age)
Response.Write ("<p> Salary = " + objinfo.salary + " </big>")

%>

<p> Invoke its repeatmessage method, the result is : </p>
<p> <big> <%= objinfo.repeatmessage(5) %>  </big></p>

</body>
</html>