Asp 返回引用類型函數(shù)代碼
更新時(shí)間:2010年03月14日 17:22:30 作者:
Asp函數(shù)返回引用類型代碼,需要的朋友可以參考下。
復(fù)制代碼 代碼如下:
<%
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
%>
相關(guān)文章
asp 實(shí)現(xiàn)顯示所有的服務(wù)器變量值的函數(shù)
asp 實(shí)現(xiàn)顯示所有的服務(wù)器變量值的函數(shù)...2007-08-08ASP中實(shí)現(xiàn)執(zhí)行定時(shí)任務(wù)的方法
這篇文章主要介紹了ASP中實(shí)現(xiàn)執(zhí)行定時(shí)任務(wù)的方法,本文使用WSH (Windows Scripting Host) 的實(shí)現(xiàn)定時(shí)任務(wù),需要的朋友可以參考下2014-07-07檢查上傳圖片是否合法的函數(shù),木馬改后綴名、圖片加惡意代碼均逃不過(guò)
很多ASP程序檢查上傳圖片是否合法往往只去檢查文件的后綴,這樣有一個(gè)很大的安全隱患,就是如果把ASP文件的后綴名改成.jpg或者.gif上傳,或者圖片里加入惡意代碼再上傳,那也會(huì)被程序認(rèn)為是圖片文件而照傳不誤。假如不懷好意的人上傳個(gè)木馬文件進(jìn)去,雖然是后綴為jpg也許無(wú)法直接運(yùn)行,但確確實(shí)實(shí)給服務(wù)器帶來(lái)了很大的安全隱患。2008-03-03asp 得到動(dòng)態(tài)數(shù)組中元素的個(gè)數(shù)
主要用到了 ubound(數(shù)組的名稱) 這個(gè)函數(shù),這個(gè)函數(shù)用來(lái)求數(shù)組的上邊界。2009-06-06.NET?Core?分布式任務(wù)調(diào)度ScheduleMaster詳解
這篇文章主要介紹了分布式任務(wù)調(diào)度ScheduleMaster,集中任務(wù)調(diào)度系統(tǒng),最簡(jiǎn)單的理解ScheduleMaster,就是對(duì)不同的系統(tǒng)里面的調(diào)度任務(wù)做統(tǒng)一管理的框架,本文通過(guò)圖文實(shí)例代碼相結(jié)合給大家介紹的非常詳細(xì),需要的朋友可以參考下2022-05-05用asp實(shí)現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)
用asp實(shí)現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)...2007-11-11