最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

文章內(nèi)頁類

 更新時(shí)間:2006年10月18日 00:00:00   作者:  
復(fù)制代碼 代碼如下:

<%
class MyArticle
    dim wenzhang_id
    dim title1,content1
    Private Sub Class_Initialize()
        'response.Write "類的初始化 事件:Class_Initialize<br>"
    end sub

    Private Sub Class_Terminate() 
        'response.Write "釋放對(duì)象 事件:Class_Terminate<br>" 
    end sub

    Public Property Let id(byval v) 
        wenzhang_id = v 
    End Property 

    Public Sub conn_sub() 
        Set conn = Server.createObject("ADODB.Connection")
          cnnstr="DRIVER={Microsoft Access Driver (*.mdb)}; "
          cnnstr=cnnstr & "DBQ=" & Server.MapPath("admin/WataVase/%29to-dream.mdb")
          conn.Open cnnstr

        sql = "Select * From Article where Deleted = 0 and ArticleID = "&wenzhang_id
          set rs=Server.CreateObject("adodb.recordset") 
          rs.open sql, conn, 1, 1

        title1 = rs("Title")
        content1 = rs("Content")

        rs.close
        set rs = nothing

        conn.close
        set conn = nothing

    end sub 

    Public Property Get title() 
        title = title1
    End Property

    Public Property Get content() 
        content = content1
    End Property

end class

'MyArticle 類 使用說明
'dim wenzhang
'set wenzhang = new MyArticle
'wenzhang.id = 3
'call wenzhang.conn_sub()
'response.write wenzhang.title
'response.write wenzhang.content
'set wenzhang = nothing
%>

相關(guān)文章

最新評(píng)論

宣武区| 九龙城区| 嘉定区| 龙胜| 尤溪县| 南宫市| 县级市| 乐山市| 民县| 平泉县| 张家界市| 含山县| 砚山县| 饶河县| 新巴尔虎右旗| 湖南省| 浦江县| 江门市| 岳西县| 东城区| 漾濞| 晋中市| 安新县| 甘泉县| 霍城县| 曲松县| 临桂县| 沂南县| 大新县| 河南省| 呼伦贝尔市| 荣成市| 和田县| 高邮市| 泸州市| 嘉定区| 砚山县| 临汾市| 淮阳县| 福州市| 惠东县|