Note: There is no implementation of CSS image collection, and the picture is still to be perfected.
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using System.Web;
Using System.Web.Security;
This article mainly introduces the use of SqlHelper.
Every project needs to use the data access layer, I do is no exception, but I make the data access layer into a stand-alone project, there is no great purpose, the data access layer, just do data
Copy Code code as follows:
The method, this method is my QQ in the study of the JS code found, can be achieved, but used not long, it was found, may be found by the QQ company, took a certain measure!
Many people say you can use the online
The common processing method is, in the user login, judge whether this user has already existed in the application, if exists on the error, does not exist then adds to the application (application is all session common, A unique object for the
I.. Net Framework
1. How to obtain a system folder
Use the GetFolderPath method of the System.envioment class, for example:
Environment.getfolderpath (Environment.SpecialFolder.Personal)
2. How to get the path of an EXE file being executed
1
default.asp
Copy Code code as follows:
Ajax-Sample1
//Please make sure the encoding of this page is set to UTF-8, otherwise there will be garbled
ajax Application Example: Registration module
ID:
Password:
Description: This function is to intercept the specified English-Chinese mixed string, and keep the display length one to. is to intercept a Chinese character in two English languages.
Use: Generally used in the title display list, you can avoid the
'******************************
' Function: Userip ()
' Parameters: None
' Author: Arisisi
' Date: 2007/7/12
' Description: Get client IP Address
' Example:
'******************************
Function Userip ()
Dim Getclientip
' If the client uses a
Recently it is too popular collection, I do not like to collect, but the principle of collection I am very interested in research, got the online collection of commonly used functions, on its research, and actual combat, the results of success,
A_key=split ("96,44,63,80", ",") ' defines the key
' ********* encryption Process *********
Function EnCrypt (M)
Dim Strchar,ikeychar,istringchar,i
K=0
For I = 1 to Len (m)
Ikeychar =cint (A_key (k))
Istringchar = ASC (Mid (m,i,1)) ' Gets the ASCII
A cookie is a text string handle sent to a client's browser and saved on the client's hard disk to persist data between sessions of a Web site. Both the request and response objects have a set of cookies. The Request.cookie collection is a series of
by Zkxp 2/15/2006 http://zkxp.cnblogs.com
A collection of masked IP addresses (segments) with an asterisk of wildcard characters, usually stored in a configuration file.
Const Badipgroup = "220.200.59.136|220.205.168.141"
If Isforbidip (badipgroup) =
'*********************************************************
' Function: Isvalidemail[str]
' Argument: str, the string to be processed
' Author: wooden Wood
' Date: 2007/7/12
' Description: Detect whether the mailbox format is xxxx@xxx.com or xxxx@xxx.
'******************************
' Function: Selplay (strurl,strwidth,strheight)
' Parameters: strURL, animated video path; strwidth, video height; strheight, video height
' Author: Arisisi
' Date: 2007/7/13
' Description: Obtain the user real IP,
Verifying IP format '******************************
' Function: Checkip (Par_strip)
' parameter: str string to be detected
' Author: Arisisi
' Date: 2007/7/13
' Description: Verify the IP format, is to return 1, otherwise return 0
' Example:
'******
Copy Code code as follows:
Function MoveR (RSTR)
Dim I,spstr
Spstr = Split (Rstr, ",")
For i = 0 to Ubound (SPSTR)
If I = 0 Then
MoveR = MoveR & Spstr (i) & ","
Else
If InStr (Mover,spstr (i)) =0 and I=ubound (SPSTR) Then
Of course this should be a normal filtering technique, and there is a final pole of filtering HTML tags, it is a pair of angle brackets and all the words in the angle brackets enclosed replace not display, the method for the content must describe
The following is the code, if you do not understand, we suggest that the form of some of the table principles are clear, you can
Copy Code code as follows:
Dim Rs,sqltext
Set rs = Server.CreateObject ("Adodb.recordset")
Just beginning to contact ASP.net, about how to log records less, so a simple record of log4net configuration and use, in case you forget later.
first introduced Log4net.dll, about the file of their own Baidu download.
Then configure the
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