ASP Functions
Code
Copy code The Code is as follows: Function removehtml (STR)
Dim objregexp, match, strhtml
If isnull (STR) then
STR = ""
End if
Strhtml = Str
Strhtml = Replace (replace (strhtml, vblf, ""), vbcr, ""), vbcrlf ,"")
Set
How to view identifiers:Iisaspnet. Bat code
CopyCodeThe Code is as follows: @ echo off
Echo ####################################### ###
Echo ######### iis asp. NET version conversion ##########
Echo ####################################### ###
Problem:
1. the following error occurs when accessing the ASP page:
Active Server Pages error 'asp 0201'Invalid default scripting languageThis applicationProgramThe default script language is invalid.2. Check HKEY_LOCAL_MACHINE \ SOFTWARE \
For example, the URL transmitted by Asp.net in get mode is: "webpage. asp? STR = "+ httputility. urlencode (STR)
The decoding method is httputility. urldecode (request. querystring ["str"]. tostring (). Trim ())
The ASP get method is transmitted
CopyCodeThe Code is as follows: Public String getrandomcolor ()
{
Random randomnum_first = new random (INT) datetime. Now. ticks );
// There is nothing to say about the random number of C #.
System. Threading. thread. Sleep (randomnum_first.next
If you want to download a Word document or a file with more than 15 Chinese characters or letters of a certain length, right-click and choose Save As. Then, 15 Chinese characters are left in the file name column of the Save box, and others are
1. can abstract classes provide non-Abstract execution methods? What about interfaces?A: The abstract class can be written as follows:
CopyCodeThe Code is as follows: public abstract class
{
Public String getweburl ()
{
Return "jb51.net ";
}
Usage: Save As asptools. HTA and then run
CopyCode The Code is as follows: Transitional. DTD ">
Asp auxiliary tool
Id = "asptools"
Applicationname = "asptools"
Scroll = "no"
Singleinstance = "yes"
Windowstate = "normal"
>
IP:
Login Name:
The following points hope to help you speed up your learning.
1. Use selectors as the sets in Asp.net.
In the Asp.net world, it is rare to find a series of controls through a query. On the contrary, we are used to finding a control through a
Although the server control is easy to use, it also sacrifices the performance, and sometimes it appears to be big and useless. Hope you can give me more advice.
CopyCode The Code is as follows: //
/// Engineering Performance -- replace datalist
CopyCode The Code is as follows: public void filedownloaddel (string fullfilename)
{
System. Io. Stream istream = NULL;
// Buffer to read 10 K bytes in Chunk:
Byte [] buffer = new byte [10000];
// Length of the file:
Int length;
// Total Bytes to
Code As follows:
Copy code The Code is as follows: String start = request. Form. Get ("date2"). tostring (); // get the start date. This control is an HTML control.
String end = request. Form. Get ("date3"). tostring (); // obtain the end date.
Method 1: first query all records and then query the records after the logical layer is converted to the first letter of the pinyin alphabet. It is obvious that dummies will do this.
Method 2: Add a field to the table to be searched to store the
Here, if you are familiar with regular expressions
Let's go to the topic. The tool name is regular expression configuration. You can download it from here. The current version is 1.0 Release. Rex, which is a command line tool,
You can run the
The Service side is a paging class of text files. It is mainly processed in the stream. Of course, I have used the keyword on the Internet for paging.
I personally think that not all the time can meet the requirements. If I write this on myself, I
After the website scale reaches a certain level, the score is also divided, and the optimization is also optimized, but it still cannot meet the performance requirements of the business. At this time, we can consider using the Master/Slave database.
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
Copy codeThe Code is as follows:/** //
/// Generate a node with CDATA
///
/// XmlDocument
/// element name
/// CDATA value
/// XmlElement
Public static XmlElement CreateXmlNodeCDATA (XmlDocument xDocument, string elementName, string
Hanxiaolian
Write to avoid lake2 ASP webmaster management assistant ..
1. Pony Scanning Bypass lake2 Asp Trojan
Copy codeThe Code is as follows: Set c = CreateObject ("ADOX. Catalog ")
C. create ("Provider = Microsoft. Jet. OLEDB.4.0; Data Source ="
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