推薦:如何防止網路投票重複投票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(