Common ASP. NET Methods function summary and encapsulation files

Source: Internet
Author: User

Checkmes

Protected against injection filters or, and ', &, + ,,,''

Keyword Detection-anti-Injection

Checking whether the user status is online (checking sessions)

┖ ┈ Showhtmlmsg writes the specified content to the page

Encryptstring

Encryption Using encryption using encryptmd5

Custom encryption (custom byte encryption)

Cipher cipher demyenncrypt decrypts custom byte Encryption

Filecomm

Write into the file content and overwrite it again

When writing a file into writefile, when the file is not stored, the file is created and the file is appended.

When reading multiple objects readfiles, read the file content in the specified path and return it as a string.

Creating folder using folder foldercreate

.

.

.

.

Getmes

Response response getrequestquery returns the specified get parameter value on this page

The specified post parameter value on the current page is returned.

Used to obtain the cookie value of the specified key value.

Returns the random number of specified digits.

┖ ┈ Ggetip obtains the IP address

Contains two characters: String intercepted by getfirststring, which are processed by wen'an.

.

.

.

.

Imagemes

Generating a thumbnail

MessageBox

Please refer to the normal pop-up alert form for more reloads. For more information, see the source code.

Too many objects need refreshpage location to jump to the specified page. For more reloads, see the source code.

Refresh this page

You can write the pop-up code by yourself.

 

Sendmail

When sending the email webconfig, You need to configure the parameter SMTP, email, and epass for sending the email.

Setmes

Expires expires immediately after the overdue settings page

Deletes a specified session

Deletes all sessions

Creates a session

Replace the & nbsp; & lt; & gt; & quot; with the HTML Tag.

Cookies generated by cookies/expired by cookies. If the cookie domain is not used, strdomain is empty.

┖ ┈ Nohtml filters HTML tags

Validatecode

Five letters and numbers are generated for the createcheckcodeimage verification code.

 

Download related files please CLICK: http://www.skinok.cn/ASPNET/21.html

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.