Asp 返回引用类型函数代码
来源:asp之家 时间:2011-03-10 10:44:00
代码如下:
<%
set studentinstance = CreateStudent()
if not isnull(studentinstance) then
Response.write("StudentId:"&studentinstance.StudentId&"<Br/>")
Response.write("StudentName:"&studentinstance.StudentName&"<Br/>")
end if
Function CreateStudent()
set stud = new Statudent
stud.StudentId=123
stud.StudentName="Eric liu"
set CreateStudent=stud
End Function
Class Statudent
private id
private name
public property let StudentId(id_)
id=id_
end property
public property get StudentId
StudentId=id
end property
public property let StudentName(name_)
name=name_
end property
public property get StudentName
StudentName=name
end property
End Class
%>
标签:Asp,引用类型
0
投稿
猜你喜欢
网页设计:巧用记事本编辑网页
2008-02-05 09:00:00
初学js者对javascript面向对象的认识分析
2011-03-16 11:04:00
ASP向SQL语句传递参数方法
2008-04-13 06:07:00
IA学习笔记04:标签系统
2009-09-22 14:40:00
asp如何做一个专门显示文本文件的页面?
2010-07-12 19:04:00
960px下的黄金分割
2009-07-31 14:33:00
Microsoft SQL Server数据库SA权限总结
2009-01-06 11:32:00
客户端数据存储–超越cookies
2008-01-15 13:01:00
如何在asp中创建DSN?
2009-11-14 20:46:00
javascript模拟鼠标自动点击链接
2007-11-03 19:08:00
如何在网页上使用VBScript和JScript
2008-05-05 19:53:00
sqlserver关于分页存储过程的优化【让数据库按我们的意思执行查询计划】
2011-09-30 11:09:37
asp ajax注册验证之 防止用户名输入空格
2011-03-11 11:17:00
网页版权的正确写法
2007-09-22 09:13:00
CSS选择符小讲
2009-09-17 11:53:00
MySQL转义字符的实际应用
2010-08-31 14:55:00
Request.ServerVariables各参数说明集合
2008-11-25 18:49:00
深入研究ASP中的Session
2007-09-13 12:37:00
日式酒店电梯面板设计
2008-06-08 13:23:00
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
2008-09-12 13:07:00