还剩2页未读,继续阅读
文本内容:
《动态网页设计与制作》作业参考答案一填空题
1.服务器、客户机、网络
2.A、文件链接、锚链接和邮件链接
3.FileSystem TextStreamFile、Folder
4.VBSCRIPT、JAVASCRIPT
5.Web浏览器、HTTP协议、HTTPserver、HTML文档、CGI程序
6.背景图案、背景色
7.有序列表、无序列表、定义列表、菜单列表、目录列表
8.文字的颜色、文字的大小
9.Frameset、Frame
10.Connection、Command、Recordset
11.ADO、ADROTATOR
12.table、TR、TD
13.TCP/IP协议、服务器、客户机、网络
14.counters、mswc.counters ContentRotator mswc.contentrotator
15.Frameset、Frame
16.ol、li二简答题
1.内置对象Request获取客户端的信息、Response根据用户的请求,向客户端输出信息、Server实现对服务器端的设置、Session用于对某一特定的客户端信息进行记录和管理、Application用于记录所有客户信息内置组件广告轮显器用于广告轮换显示、文件存取组件用于文件操作文件超链接组件用于超链接管理
2.ADO主要由三个对象Connection、Command和Recordseto Connection主要用于数据库的链接;Command对象借助于SQL命令对数据库进行操作,把操作结果返回Recordset对象;Recordset对象用于返回一个对数据库操作后的数据集合记录三个数据集合Fields、Parameters Errors;Fields数据集合用于字段的管理;Parameters用于确定在存贮命令中的参数;Errors数据集合包含因运行命令而引起的错误的详细内容
3.与INTERNET的永久链接、IP地址和域名、服务器硬件、WEB服务器软件
4.htmlbodyframeset rows=〃80,*〃cols=312,*〃frame src=〃l.htnT〉frame src=/,
2.htm〃frame src=〃
3.htm〃frame src=〃
4.htm〃〉/frameset/body/html
5.Target属性用于控制被链接页面打开的方式,常见的取值有:_blank_Self_Parent和_top;_blank表示被链接的文件在新窗口中打开、_Self表示被链接的文件在当前窗口中打开、_top表示被链接的文件在当前窗口中打开,并清除所有框架、.Parent表示被链接的文件在父框架中打开
6.普通HTML文件、服务器端的程序代码、客户端的程序代码
7.1客户与服务器建立TCP链接2客户向服务器发送请求3如果请求被接受,服务器就向客户发送响应信息,其中包括状态码和所要求的文件4客户与服务器关闭链接三综合题
1.post、output.asp text、password、submit、reset、name passw、usern userp
2.global.asa Vbscriptserver、onstart
0、Onstart Application UsejOnline+
1、onend、ApplicationUsejOnline-
1、User_Online
3.Sub Writeforeach xin Request.Cookies response,write〃p〃Response.Writex〃=〃Request.Cookiesx〃br〃response,write〃/p〉〃nextend sub
4.htmlhead〈Title》插入数据记录〈/title》/headbodyif request“name“二”“and requestPassw“二””thenform name二〃form1〃method=post action=a.asp用户名input type=text name=name〉密nbsp;码input type=text name=〃passw”〉input type=submit name二〃Submit value二〃提交〃〉input type=reset name二〃Submit value二〃重填〃〉/formelsename=request“name”passw=request passwDim Db,StrconnStrConn=“Dbq二server.mappath Student,mdbDriver={Microsoft AccessDriver*.mdb}Set db=server.createobject Adodb・connectionDb.open StrconnDimcmdSet cmd=server.createobject Adodb.command Setcmd.activeconnection=dbSqlStr二insert intostudentname,passw valuename“,passw”cmd.commandtext=sqlstr cmd.execute db.close setdb=nothing end if%/body/html
5.vbScript、server、CreateObject、Scripting.FilesystemObject、FileObj、Textfile、FileObj、FileSourceFileObject TextFile
6.htmlhead〈Title删除数据记录〈/title》/headbodyif request“name“二“thenform name二method=post action=a.asp用户名input type=text name=name”input type=submit name二〃Submit value=”提交〃》input type=reset name=Submit value=〃重填〃〉/formelseDim Db,StrconnStrConn二“Dbq二feserver.mappath Student-mdbDriver={MicrosoftAccess Driver*.mdb}“Set db=server.createobject Adodb・connection Db.open StrconnDimcmdSet cmd=server.createobject Adodb・command Setcmd.activeconnection=dbSqlStr二delete fromstudent wherename=’namen cmd.commandtext=sqlstrcmd.execute db.closeset db=nothingresponse,write”记录已删除”endif/body/html
7.htmlheadtitlepagecounter组件〈/title/headbodydim pageobjSetpageobj=server,createobject Cmswc.pagecounter pageobj.pagehit response.Writepageobj.hits/body/html
8.htmlhead〈title修改记录〈/title〉/headbodydim mylink,myrecordsetset mylink=server.CreateOb jectz,adodb.connectionmylink.ConnectionString=,,driver={Microsoft accessdriver*・mdb};dbq=z/server.mappath,zmydata.mdb〃mylink.open setmyrecordset=server,CreateObject〃adodb・recordsetmyrecordset.CursorType=0myrecordset.CursorLocation=1myrecordset.LockType=2myrecordset.open select*from personwhere uname=peter〃,mylink whilenot myrecordset.eofmyrecordset country二〃中国〃myrecordset.update myrecordset.movenext wendmyrecordset.close mylink.closeresponse,write“记录已修改”/body/html。
个人认证
优秀文档
获得点赞 0