I often encounter a 500 Error prompt when my website cannot be opened, which makes people unable to cope with the problem. How can I view the detailed error prompt and find the error?
Next, we take Windows XP as an example.
1. Open IE and select
String fox;
Fox. tolower () to lowercase letters
Fox. toupper () converts to uppercase letters
Fox. Trim () removes leading and trailing Spaces
Fox. Trim (trimchars) delete other characters
Fox. trimstart (): space before deletion
Spaces after Fox.
By default, ASP. NET accounts do not have the permission to operate Microsoft Office objects. If you do not configure permissions, the code will throw an exception similar to the following:
Failed to retrieve components whose CLSID is {00024500-0000
The Code is as follows:
Copy codeThe Code is as follows: // Single Sign On)
Public void SSOMethods (string username, string password)
{
// This method is omitted to determine logon conditions ......
Int result = CheckLogin (username, password );
If the referenced sites are relatively small, the "useless" traffic caused by the leeching of external sites puts pressure on the Webmaster (the traffic also requires money ). Anti-leech can be prevented from two aspects: Server and program.
Copy codeThe Code is as follows: 'sort
Function Sort1 (ary)
Dim KeepChecking, I, FirstValue, SecondValue
KeepChecking = TRUE
Do Until KeepChecking = FALSE
KeepChecking = FALSE
For I = 0 to UBound (ary)
If I = UBound (ary) Then Exit
If ary (I)
The js Code is as follows:
Copy codeThe Code is as follows:
The page ASPX code is as follows:Copy codeThe Code is as follows: No title page Create a new folderSearch for new foldersDelete this folderDelete allFile SortingNameCreation
Test code: Output simple ul li1. asp
Copy codeThe Code is as follows: Response. write ""
Response. write " script home "
Response. write " www.jb51.net "
Response. write ""
%>
The result is: Right-click the source file and you will seeCopy codeThe
Copy codeThe Code is as follows: '====================================
'Format HTML, SDCMS enhanced version
'====================================
Function Nohtml (ByVal t0)
IF Len (t0) = 0 Or IsNull (t0) Then
Nohtml = ""
Exit Function
End IF
Dim
Copy codeThe Code is as follows: '==============================================
'Retrieve all images in the content
'==============================================
Function Get_ImgSrc (ByVal t0)
Dim t1, Regs, Matches, Match
T1 = ""
IF Not (IsNull
It won't be used after downloading, and similar methods cannot be found on the Internet. This problem may not have been encountered. After one night of research demo and colleagues, I finally figured out how to use it. I would like to summarize it
The first reflection is whether these attributes of the verification code can be set (that is, they are encapsulated into a class and used in the form of exposing public attributes and methods, or directly generate the verification code to the
①. The page files are correctly encoded. gb2312 adopts ANSI and UTF-8;
②. Set the correct CODEPAGE in ASP code. Use 936 for gb2312 and 65001 for UTF-8;
③ Set the correct charset in the HTML code. Use gb2312 and UTF-8 for gb2312;
④. Encode the passed
Problem: 1. The title and option of the vote cannot be bound cyclically.Solution: add the ItemDataBound event to the Repeater binding. Use RadioButtonList to bind the event with the source code:
Default Page, Source Page
Copy codeThe Code is as
Add "path = expiration time" to the js method to solve this problem.
Example: // write cookiesCopy codeThe Code is as follows: function setCookie (name, value){Document. cookie = name "=" escape (value) "; path =/"; // The cookie is disabled.}
1. Linux host redirectionGodaddy's Liunx host, Godaddy itself supports Apache, so you can directly create. the htaccess file is enough. Generally, it cannot be created locally. when using htaccess, you can create a txt file and rename it ". htaccess.
The following is the initial implementation code. LargerResultProcessor is a base class that traverses the database table pointed to by the generic parameter T and pages the table with 100 entries per page, and call the ProcessItem function for each
Copy codeThe Code is as follows: function checkip (checkstring) 'uses regular expressions to determine whether the IP address is valid.
Dim re1
Set re1 = new RegExp
Re1.pattern = "^ [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1, 3} $"
Re1
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.