---------------------------
rs.open sql,conn,1,3
rs("name")=222
rs.update
name=rs("name")
rs.movenext
name=rs("name")
------------------------
函数内变量问题
函数和过程内定义的变量和对象均为范围内作用域
——-----------------
表单提交事件onsubmit=""
-------------------------
表单验证函数放的位置
-------------------------
do while not rs.eof 正确
do while not(rs.bof and rs.eof) 错误
-----------------------------
js关键字大小写规律
---------------------------
同名表单的处理很灵活
第i+1个元素:
request.form("same")(i)
多选和单选框选中的则传递值,未选中的不传
select * from table where id in(request.form("checkbox"))
js:
if(!document.form.checkbox.checked) {alert(document.form.checkbox.checked);}
------------------------------------------
传参数加锚点(动加静)
zhinan.asp?id=3#15
-----------------------------------------------
得到页面传来的参数转化为整数
id=cint(Request.QueryString("id"))
如果xxx.asp? 或 xxx.asp?id= 或 xxx.asp?id=0 或 xxx.asp?id="" 或 xxx.asp?id=www 或 xxx.asp?id='' 或 xxx.asp?id="www" 或 xxx.asp?id='www'
则得到 id 为 0
如果只是xxx.asp 则id为空不为0
但是用rsponse.write(id)输出时,只有
xxx.asp?id=0 xxx.asp? xxx.asp 输出0
xxx.asp?id="0" xxx.asp?id='0' 不输出任何值
----------------------------------------------
链接指向当前页面方式
href="?" href="#"
当为空时href=""指向当前页面所在路径的文件目录列表dir
-----------------------------------------------
rs.open sql,conn,1,3
rs("name")=222
rs.update
name=rs("name")
rs.movenext
name=rs("name")
------------------------
函数内变量问题
函数和过程内定义的变量和对象均为范围内作用域
——-----------------
表单提交事件onsubmit=""
-------------------------
表单验证函数放的位置
-------------------------
do while not rs.eof 正确
do while not(rs.bof and rs.eof) 错误
-----------------------------
js关键字大小写规律
---------------------------
同名表单的处理很灵活
第i+1个元素:
request.form("same")(i)
多选和单选框选中的则传递值,未选中的不传
select * from table where id in(request.form("checkbox"))
js:
if(!document.form.checkbox.checked) {alert(document.form.checkbox.checked);}
------------------------------------------
传参数加锚点(动加静)
zhinan.asp?id=3#15
-----------------------------------------------
得到页面传来的参数转化为整数
id=cint(Request.QueryString("id"))
如果xxx.asp? 或 xxx.asp?id= 或 xxx.asp?id=0 或 xxx.asp?id="" 或 xxx.asp?id=www 或 xxx.asp?id='' 或 xxx.asp?id="www" 或 xxx.asp?id='www'
则得到 id 为 0
如果只是xxx.asp 则id为空不为0
但是用rsponse.write(id)输出时,只有
xxx.asp?id=0 xxx.asp? xxx.asp 输出0
xxx.asp?id="0" xxx.asp?id='0' 不输出任何值
----------------------------------------------
链接指向当前页面方式
href="?" href="#"
当为空时href=""指向当前页面所在路径的文件目录列表dir
-----------------------------------------------