asp.net| function
A asp.net common function library, including the following commonly used functions:
- Convert ordinary characters to Web tags
- Page labels are converted into blanks
- WinForm and WebForm character format conversions
- Calculate the length of the text, distinguish between Chinese and English characters, and count two lengths in English.
- Intercepts the text of the user input length and then adds ' ... ' to the text. [Chinese count two length, English calculate a length]
- Used to prevent SQL injection attack detection
- Remove the page tag code from the text
- Converts SQL statement inserts or restores key punctuation marks that may occur when you take out text "'"
- Create a new empty folder
- Create a new empty file
- Delete a folder
- Delete a file
- Move a folder
- Writing text to a file
- Get file type
- Get File size
- Get the last time the file was modified
- With the current time plus four-bit random number to generate a filename
asp.net common function library. RAR (4.93 KB)