ASP regular expression skills

CopyCode The Code is as follows: STR = request ("str ") Reg = request ("Reg ") Set RegEx = new Regexp With RegEx. Pattern = reg. Ignorecase = false. Global = trueEnd Set match = RegEx. Execute (STR) If match. Count> 0 thenFor each matched in

Notes about Asp.net cookies

Cookies are easy to set and use. Therefore, no expires issue is found during the process of Directly Reading and Writing cookies. After obtaining a cookie instance from the request, if the cookie is sent to the client again without resetting the

Summary of page refreshing implementation (HTML, ASP, JS)

Timed Refresh: 1, Note: The URL is the URL of the page to be refreshed.2000 is the waiting time = 2 seconds, 2, Note:N is the number of seconds to wait before loading the specified URL.URL is an absolute URL to be loaded.N is the waiting

Add a summary row in Asp.net gridview

If (E. Row. rowtype = datacontrolrowtype. datarow){Totalcash + = convert. todecimal (databinder. eval (E. Row. dataitem, "cash "));Totalunbalanced + = convert. todecimal (databinder. eval (E. Row. dataitem, "unbalanced "));Totalsettled + = convert.

Simple usage of Asp.net ajaxcontroltoolkit filteredtextboxextender

The purpose of the verification control is to give the user a prompt if the input information does not match. The advantage of this text filter control is that it does not directly give the user the opportunity to enter error information.

Asp.net urlrewriter experience

Step 1: Download the sample source code. Decompress the package and copy urlrewriter. DLL to your project bin directory. Step 2: Add the following content to Web. config: CopyCode The Code is as follows: Step 2: add the rewritten rule node:

ASP program for generating images from webpages (telephone, QQ, and other numbers)

Purpose: use ASP Program Generate an image format for the phone number on the page. CopyCode The Code is as follows: Call com_creatvalidcode (request. querystring ("tel ")) Public sub com_creatvalidcode (ptel) '---------- Disable caching Response.

ASP Chinese digit Verification Code

CopyCode The Code is as follows: Last name: Student ID: ... : ... : Verification Code: ASP code:Copy codeThe Code is as follows: C = request. Form ("C ")'If you can enter a lower-case number, comment out the following three rowsFor II =

How to output an ASP record set as a table with n columns

'Define variables Dim CN, RS, SQL SQL = "select customerid from orders" 'Total records Dim totalnumbe Set Cn = server. Createobject ("ADODB. Connection ") CN. Open "provider = sqloledb.1; user id = sa; initial catalog = northwind; Data Source =.;

Asp.net File Upload class (get the file suffix, save the file, and add a text watermark)

CopyCode The Code is as follows: using system; Using system. Data; Using system. configuration; Using system. Web; Using system. Web. Security; Using system. Web. UI; Using system. Web. UI. webcontrols; Using system. Web. UI. webcontrols.

Implementation of a regular expression extraction example (. net asp JavaScript/JS) for URLs, titles, and images

In some situations such as crawling and filtering, the advantage of the regular expression is obvious. For example, there are the following strings: CopyCode The Code is as follows: [09/11] FCKeditor highlight code plug-in test now, you need

Asp access implements website counters (access volume)

Set conn = server. Createobject ("ADODB. Connection ") Connstr = "provider = Microsoft. Jet. oledb.4.0; Data Source =" & server. mappath ("cou. mdb") // cou is the database name Conn. Open connstr If SESSION ("visited") <> "yes" then Application.

Asp.net cookie clearing code

Request. Cookies. Clear () is not used to delete cookies. Deleting a cookie (that is, physically removing a cookie from a user's hard disk) is a form of cookie modification.The cookie cannot be directly removed because it is on the user's

Xmlhttp asp Remote Access To webpage content code

CopyCode The Code is as follows: url = "http://www.csdn.net /" Wstr = gethttppage (URL) Start = newstring (wstr, "Resource Selection ") Over = newstring (wstr, " ") Body = mid (wstr, 200,500) Response. Write body Function gethttppage (URL)Dim

Asp.net easy to generate registration code (numbers + uppercase/lowercase letters)

Leave a message if you cannot understand it. Generate random code class: sigowayrandom. CS CopyCode The Code is as follows: using system; Namespace rongyi. model. Common { /// /// Summary of sigowayrandom /// Public class sigowayrandom { #

Asp.net XMLHTTP encapsulation class (get, post send and receive data)

CopyCode The Code is as follows: /*************************************** ************************* * Function name: sendcommand (sendmethod method, st_param P) * Function Description: Send a URL and parameter to the remote server and receive the

Simple usage of asp.net UpdatePanel

UpdatePanel controls partial updates on the page. This update function depends on the EnablePartialRendering attribute of the scriptManger control, if this attribute is set to false, local updates will be ineffective (the default value of the

Asp.net dialog box (output alet warning box)

Using System; Using System. Data; Using System. Configuration; Using System. Web; Using System. Web. Security; Using System. Web. UI; Using System. Web. UI. WebControls; Using System. Web. UI. WebControls. WebParts; Using System. Web. UI.

Asp.net Socket Client (remote data sending and receiving)

Copy codeThe Code is as follows: /*************************************** * Object Name: SocketObj * Function Description: Remote Sending and receiving * Trial example: * Using EC; // The name of the referenced space. * String url = "218.75.111.74";

Asp.net obtains machine hardware information (cpu frequency, disk space, memory capacity, etc)

Copy codeThe Code is as follows: using System; Using System. Data; Using System. Configuration; Using System. Web; Using System. Web. Security; Using System. Web. UI; Using System. Web. UI. WebControls; Using System. Web. UI. WebControls.

Total Pages: 1800 1 .... 1030 1031 1032 1033 1034 .... 1800 Go to: GO

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.