推荐:如何防止网上投票重复投票ASP对象 在ASP中有5个对象:Request、Response、Session、Application、Server。下面只针对本文能用到的对象属性进行说明,其他方面的属性请参考相关资料。本文提供的方法的原理是:设置一个逻辑变量IsVoted,在投票之前验证IsVoted的值,只有值为False时,才
现在的在线编辑器有很多,且功能强大,比如eWebEditor,但也占用空间大,一些简单的论坛、留言板并不还需要太强大的功能,HtmlEditor就是这样一个编辑器,简单漂亮,调用也方便,推荐大家使用。调用时代码,
提交页:
| <form method=POST action=Post.asp name=aaa> <input name=Title size=50> <textareaname=contentstyle=display:none></textarea> <iframeid=Editorname=Editorsrc=HtmlEditor/index.html?ID=contentframeborder=0marginheight=0marginwidth=0scrolling=Nostyle=height:320px;width:100%></iframe> <input type=submit value=确定 name=button> </form> |
处理页:
.... recordset1.addnew() recordset1(zt)=Request(Title) recordset1(nr)=Request(Content) recordset1.update .... |
效果图:
分享:详解Asp函数Cbool(string) 转换为布尔值 Cbyte(string) 转换为字节类型的值 Ccur(string) 转换为货币类值 Cdate(string) 转换为日前类型的值 Cdbl(string) 转换为双精度值 Cint(string) 转换为整数值 Clng(string) 转换为长整型的值 Csng(string) 转换为单精度的值 Cstr(