<%@language=jscript%>
<html>
<head>
<title>Using the CreateObject Method</title>
</head>
<body>
<p align="right"> <big> <a href="default.html"> Go Back </a>
</big></p>
<p><big>Comment:</big> Referencing the Class DemoCreateObject
with parameters, and access its properties and Methods</p>
<br>
<%
objinfo = Server.CreateObject("DemoCreateObject")
Response.Write( "<p> Default property 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 property 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> Using the repeatmessage method, the results are: </p>
<p> <big> <%= objinfo.repeatmessage(5)
%> </big></p>
</body>
</html>
|