①. paging file using the correct encoding, gb2312 use ansi,utf-8 use Utf-8;
②.asp code to set the correct codepage,gb2312 use 936,utf-8 use 65001;
③.html code to set the correct charset,gb2312 use gb2312,utf-8 to use utf-8;
④. The passed parameter
To determine if the server has some kind of ASP component installed, the more commonly used code is as follows:
Copy Code code as follows:
' Function: Check if system components or components are installed successfully
' Parameters:
Copy Code code as follows:
' Text watermark
Function Wordwatermark (ImagePath)
Dim Image
Set image= Server.CreateObject ("Persits.jpeg") ' establishes an object
Image.open Server.MapPath (ImagePath) ' Image location
Sometimes we use a check box in a Web page, which is a marquee, when the user submits the input, we get the contents of the check box, and then we save it to the database, such as the personal information entered by the user. However, when users may
To set up the application pool (application pool) as classic. NET AppPool instead of the default defaults AppPool, you can set each site in the site directory, or you can set it separately on the site. After selecting the site you want to set up,
Direct replacement with regular, but no judgment function
Function formatimg (content)
Dim re
Set re=new REGEXP
Re. IgnoreCase =true
Re. Global=true
Re. pattern= "(script)"
Content=re. Replace (Content, "script")
Re. Pattern= "]*src (=|) (. [^>]*) >
The example in this article describes the ASP.net method of reading XML files and stream streams using the dataset's ReadXml. Share to everyone for your reference, specific as follows:
String strxml = "121122111222 ";
DataSet ds = new
Because to write a thing to use, so Baidu a bit, incredibly have a friend to write, and more than, have not seriously tested, only on the character can, but on the number can not, and very poor versatility, need to modify the real use. No way to
First method: This is the code that deletes the picture of the word segment. Simple, because the picture field already exists in the Bookpic field of the database table.
Copy Code code as follows:
Fileid=trim (Request ("Fileid")) '
Copy Code code as follows:
' The main screen download tool
Dimxurl,xtool
' Get browser agent
Xurl=lcase (Request.ServerVariables ("Http_user_agent"))
' Definition prohibited agent, the following 5 contains the latest version of the Express,
Copy Code code as follows:
Strfilename=strfile
Response.buffer=true
Response.Clear
Set s=server.createobject ("ADODB. Stream ")
S.open
S.type=1
On Error Resume Next
Set fso=server.createobject ("Scripting.FileSystemObject")
If not
For many reasons, there are many friends space does not support the FSO,
There is also when a lot of pages generate static pages, occupy a lot of space,
There is the change in style, not convenient,
So dynamic pages still have the benefits of
' Take field data ' Pinyin first letter of each Chinese character
Function Getpychar (char)
TMP = 65536 + ASC (char)
If (tmp>= 45217 and tmpGetpychar = "A"
ElseIf (tmp>= 45253 and tmpGetpychar = "B"
ElseIf (tmp>= 47761 and tmpGetpychar = "C"
ElseIf
code from the Internet, and slightly modified some places, its practical is the cache class.
Save code for, for example, pic.asp
Use: Yun_qi_img/log.gif
Not only is 163, in fact, is a lot of anti-theft pictures can be this realization.
'
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 exists
The previous two articles have learned, service-side verification, and client verification, but you have not found that both of these two kinds of authentication have drawbacks, server-side validation, validation logic and the logic of the code
The application of ASP.net checbox in GridView is described in this paper. Share to everyone for your reference, specific as follows:
First look at the effect of the picture:
Foreground code: Style own Definition Oh!
' >
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