Easyasp class simplifies your code

Source: Internet
Author: User

I have seen a database operation class of the author for a long time. I found that the author has released easyasp some time ago. The current version is 2.1 beta, which is very well written, many common functions and operations have been simplified to facilitate rapid development. In the past, I just caught a copy of the source code. Now, let's take a look and learn! Most developers often have their own function libraries and common component libraries, which are constantly expanded and strengthened with accumulation.

The author has a habit of extracting N source codes from the Internet and then researching them.CodeAnd learning implementation ideas, I believe most developers have such a hobby! The following section shows the paging test code of easyasp, Which is concise:

 
 
  1. <! -- # Include file ="EASP. asp"-->
  2. <%
  3. Dim Conn
  4. Set conn = EASP. DB. openconn (1,"Data/# dB. mdb","")
  5. EASP. DB. dbconn = Conn
  6. Dim RS, I
  7. Set rs = EASP. DB. GPR ("1: P: 10","Select * from article")
  8. While not Rs. EOF and I <Rs. pagesize
  9. EASP. wn RS ("Art_title")
  10. I = I + 1
  11. Rs. movenext
  12. Wend
  13. EASP. C (RS)
  14. EASP. wc easp. DB. getpager ("Base")
  15. EASP. C (conn)
  16. %>

Attached:

interested can download to the http://code.google.com/p/easyasp/, the Code has a lot of places worth reference, of course, used to do the actual development is also good!

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.