简答题

课程名称:网络管理员

题目:【问题2】(每空1分)以下是publisharticle.asp代码,在发表文章时,如果没有登入,则提示发表文章前需要先登入,而且需要判断文章的主题及内容是否为空,并返回提示信息。请将(8)〜(15) 的空缺代码补充完整。<html><head></head><body bgcolor=#c1f7d8><center><%dim strArticletitle,strarticlecontent,strarticleauthor,strarticleiddim strtable,strdsnif session("name")="" then    (8) "请你首先登录,才能发表高见"    response.endend ifstrarticletitle=request.form("(9)")strarticlecontent=request.form("content")strarticleauthor=session("name")(10)=request.form("articleid")strtable="article"strdsn="dsn=bbs;uid=feng;pwd=feng"if trim(strarticletitle)="" then    response.write "主题不能为空"    response.endend ifif trim((11))="" then    strarticletitle=strarticletitle & "(无内容)"end ifset rs=server.createobject("adodb.recordset")rs.open strtable,strdsn,3,2rs.addnewif request.form("submit")="(12)" then    rs("articletitle")=strarticletitle    rs("articleauthor")=strarticleauthor    rs("articlecontent")=strarticlecontent    response.write "文章发表成功"elseif request.form("submit")="跟贴文章" then    rs("articletitle")=strarticletitle    rs("articleauthor")=strarticleauthor    rs("articlecontent")=strarticlecontent    rs("articleparent")=strarticleid(13)rs.updaters.closeset rs=nothing%><%'修改跟贴文章数if request.form("submit")="跟贴文章" then    strchangesql="update article set articlefellownumber=articlefellownumber+1 where articleid=" & strarticleid    strconn="dsn=bbs;uid=feng;pwd=feng"    set conn=server.(14)("adodb.connection")    conn.open strconn    set rs=conn.(15)(strchangesql)    set rs=nothing    conn.close    set conn=nothing    response.write "文章成功跟贴"end if%></body></html>(8)~(15)备选答案:A.strarticlecontent B.executeC.response.writeD.发表文章E.end if F.createobject G.titleH.strarticleid