I recently fell in love with my website and used asp for development. I found that asp has many vulnerabilities and a lot of code is used repeatedly on a website, so I found some materials and found that the idea of class can be used in asp. So I wrote this class, which is not good but practical.
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<%
Const Btn_First = "<font face = 'webstring'> 9 </font>" 'defines the display style of the button on the first page.
Const Btn_Prev = "<font face = 'webstring'> 3 </font>" 'defines the display style of the buttons on the previous page.
Const Btn_Next = "<font face = 'webstring'> 4 </font>" 'defines the display style of the next page button
Const Btn_Last = "<font face = 'webstring' >:</font>" 'defines the display style of the button on the last page.
Class clsDSJ
Private p_Error, p_IpAdd, p_Debug, Errs
Private p_InvaildWords
Private tmpStr
Private objConnDivPage, rsDivPage, p_GetSQL, p_nPage
Private p_rsPageSize, p_intCurPage, p_strURL, p_intTotalPage, p_intTotalRecords
Private p_dbType, p_dbFolder, p_DataBase, dbPath, p_dbUserID, p_dbPassword, p_sqlDataSource
Private param_DataBase, param_dbUserID, param_dbPassword, param_dbType
'Property
Public objConn, ConnStr, SQLQueryNum
Public logDB, WebURL
Public SaveLog
Public ErrCodes, ErrCode, ErrMsg
Public ScriptFolder, ScriptName
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service