Background
The title of this article is C # operations AD to modify the user password, in fact, in the Microsoft API does not modify the password method (I understand that the change password is required to enter the old password to verify), only
code is as follows
copy code
function Killn (ByVal s1) ' filter numeric parameter if not IsNumeric (S1) then killn=0 Else if s1〈0 or s1〉2147483647 then Killn=0 Else killn=clng (S1) End-if end-if End Function
ASP get post SQL anti-injection function
'----an interception that implements the injection of a GET request-----Dim sql_injdata,sql_inj,sql_get,sql_post,sql_dataSql_injdata = "' |and|exec|insert|select|delete|update|count|*|%|
1. Please build a database in SQL Server name:house run the following script in house
if exists (select * from sysobjects where id = object_id (N ' [dbo].[ City] ') and OBJECTPROPERTY (ID, N ' isusertable ') = 1)
drop table [dbo]. [City]
Go
if
The code is as follows
Copy Code
Dim Rs,sql,foundstrDim Classid,childstrDim Rssbody,rsstitle,rsshomepageurlDim Xmldom,node,cnode,cnode1,msginfoSet xmldom = Server.CreateObject ("Microsoft.FreeThreadedXMLDOM")Xmldom.appendchild
The Cross-domain problem exists in fact originated from the browser's homology strategy (same origin policy), in brief, homology is the request domain name, the protocol, the port three all are consistent, but the homologous policy means that the
Add new nodes to XML Addok=request ("Addok")If addok= "" Or IsNull (Addok) Then%>Website name: " URL: " End IfIf addok= "Add" thenSite=request ("Site")Url=request ("url")strSourceFile = Server.MapPath ("./") & "\test.xml"' Get the path to the XML
Dim CurrentPage ' Defines the current page
Dim filename ' filename
Const maxperpage=20 ' number of records displayed per page
Dim Totalnumber ' Total Records
Filename= "Showpages.asp"
totalnumber=200 ' Set record total of 200
If not IsEmpty (Request
The code is as follows
Copy Code
Session (' Time ') =now ()Const a= #0:0:4# ' defines the number of seconds between intervalsIf session ("Time2") >0 then ' if a valueIf session ("Time2") +a > Sessions ("Time") Then 'Session ("Time2")
1. How to pull the scroll bar, the background image does not move?
Answer:
2.SQL Server database, want to use the OLE DB database, please you shrimp advice, how Lian Ah?
Answer: Set Cn=server.createobject ("Adodb.connection")
Cn.provider= "SQLOLEDB"
SQL injection has been played by so-called Cainiao-level hackers. It is found that most of today's hacker intrusions are based on SQL injection. SQL injection has been played by so-called Cainiao-level hackers and finds that most of today's hacker
Upload script usage The following is an example of a script Upload application. The downloaded files in this article provide the files and code in the example. Release the compressed file to a path and configure a virtual path for your network
Updating daily news is a headache for webmasters. First, after collecting a large amount of news, they must make a large number of webpages, domestic news and IT news are really tiring. The most fatal point is that these loose news cannot be managed,
(2) add and manage daily news contentAfter a news report is submitted, it is submitted to a file named addnew. asp is used to process news content for classification and storage. For display and analysis, the following news content library is read
Abs (numerical value)Absolute value. The absolute value of a number is its positive value. The absolute value of a null string. Uninitialized variable, which is absolutely 0Example: ABS (-2000)Result: 2000Array (Array elements separated by
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.