我有一个小问题,关于ASP 程序的注释
ASP程序的注释是不是不加也可以
比如说下面这段代码。
不加注释也可以看懂。
但是为了程序文档的要求,还是应该写的吧!但我又不知道应该写点什么注释。
if (vpage1="" and vpage2="") then
if request("cpbh")<>"" then
cpmc=request("cpbh")
cpmc="'"&cpmc&"'"
set session("rspro")=Server.CreateObject("ADODB.RecordSet")
session("rspro").CursorLocation=adUseClient
sqlpro="select top 1 * from sad_info where cpbh="&cpmc
session("rspro").open sqlpro,conn
else
set session("rspro")=Server.CreateObject("ADODB.RecordSet")
session("rspro").CursorLocation=adUseClient
sqlpro="select * from sad_info"
sqlpro=sqlpro&" where cptp is null or cptp=''"
if request.querystring("cplb")<>"" then sqlpro=sqlpro&"and cplbh='"&trim(request.querystring("cplb"))&"'"
sqlpro=sqlpro&" order by fbrq desc"
session("rspro").open sqlpro,conn
end if