A collection of ASP development techniques

Skill 1. Several common functions Round (pi, 2) roundedFormatNumber (k,4) ' formats K as a number with four-bit decimal points.eg. If K =20000 is shown as 20,000.00 if FormatNumber (k,0) is 20,000Replace (Expression,find,replacewith) ' returns a

Html+asp+php+jsp:4 ways to prevent browsers from caching pages

asp+|js| Cache | browser | page HTTP: Asp Response.expires=0 Response.AddHeader ("Pragma", "No-cache") Response.AddHeader ("Cache-control", "No-cache, Must-revalidate") Php Header ("Expires:mon, June June 1997 05:00:00 GMT"); Header

19 Basic Tips for ASP (1)

Skill 1. Now the date Time command is    The 2.ASP method for obtaining data entry in form (from) is to use one of the built-in objects (object)-requect, it varies by get,post.    3. If you want to write yourself in VB or other languages,

Common code Recommendations for ASP programming

Programming 1. asp connect with Access database: Dim conn,mdbfile Mdbfile=server.mappath ("database name. mdb") Set Conn=server.createobject ("Adodb.connection") Conn.Open "Driver={microsoft Access Driver (*.mdb)};uid=admin;pwd= database password;

ASP code write file record with code without database

Data | database If Request ("action") = "Save" then Web_name=trim (Request.Form ("Web_name")) Web_url=trim (Request.Form ("Web_url")) Web_email=trim (Request.Form ("Web_email")) Web_keyword=trim (Request.Form ("Web_keyword")) Web_qq=trim (

ASP Delete File code

' Program name: delfile.asp' Key parameter: Struploadfiles file nameExample: Delete test.rar file Struploadfiles=trim (Request.QueryString ("Struploadfiles"))Action=trim (Request.QueryString ("Action"))Response.Write "Successfully removed "

ASP code shows absolute path

Show   "to root path format  dim stempurl  stempurl = URL  if Left (Stempurl, 1) = "/" Then   relativepath2rootpath = Stempurl  end If  dim swebeditorpath   Swebeditorpath = Request.ServerVariables ("Script_name")  swebeditorpath = Left

Create a custom action in ASP.net atlas

The Asp.net| creation action is a class of components that inherit from the Sys.action base class in ASP.net atlas to implement a class of event-handling capabilities that are raised by an event. The action is similar to the function of the event

The pure ASP code realizes the picture and the text synchronously uploads

Upload | Upload on the internet to see an article, modified and combined with XML, to achieve picture text synchronization upload! Total 3 files: upload.htm,uploadtext.asp,uploadimg.asp Create an Access database called Text.mdb, the table called

ASP Tutorial: Write your own database operations

Database operations classes on the Internet a lot, I this is not better than those, just write their own, with more habits. So I have nothing special in this category, just use their habits, as for efficiency, etc., Welcome to enlighten!! Class

Rookie 10 days learn the second day of the ASP Tutorial: Form transfer variables

Variables | tutorials | 10 days of learning Previous section: Installing and debugging an ASP environment   Learning purposes: Learn to transfer variables to the server using form elements, and then display the variables in the client's

ASP implement single page query database

Data | database Dim Rs,sql,x_name,x_pwd,x_countIf Request.Form ("do") = "OK" ThenIf Request.Form ("user_name") = "" ThenResponse.Write (" ")Response.End ()ElseX_name = Request.Form ("user_name")End If' ↑ The Renegade username is empty!If

Asp. NET Beginner: Understanding the collection of. Net

Asp.net| Beginners | collection . NET a large number of collection objects will cause some confusion, this "guide" guide will help you find your direction in the System.Collections domain. Collections provide a way to format any object in storage,

How to deal with images in ASP

In the use of ASP programming, many times to use the image. For the simple processing of a image from the database, the method has been said a lot, it is not difficult to see the following code: Here, let's say you have a database named: Pubs, in

Asp.net2.0:ilungasoft.framework.web-based callback no refresh upload progress bar control [with source]

asp.net|web| Control | upload | refresh | no refresh Share a callback based on the No Refresh Upload progress bar control of the source code. This control uses a httpmoudule based on the gem's Upload progress bar sample, which is encapsulated as a

Application of Global.asa in ASP

  The function is to read the next INI file information in the publishing directory

ASP Design website online Headcount Statistics program

Program | design | statistics | online | When browsing the Web, you can often see a number of online numbers of people on the current site who are xxx. How to use ASP to do one? First of all, the analysis of its practice, in general, these online

ASP. NET application error "HTTP/1.0 500 Server Error of a solution.

Asp.net | error | Server | program | error | Solutions Today, my co-worker in the open before the ASP. net project, reported this wrong "HTTP/1.0 500 Server Error"The Bureau for many reasons, the solution is in all sorts of ways, but all is invalid.

Learning Reference: Implementing page pagination with dreamweaver+asp

dreamweaver| Reference | pagination | Web page Today a little excited, want to "on the use of dw+asp to achieve the paging technology reference" to share with the dw+asp to do the Web page friends. Remove only "first page, previous page, next page,

A graphical Verification code page written by myself (asp.net2.0 passed)

Asp.net| Graphics | Verification Code | page Project needs, to the homepage login interface to add a graphics verification code, fashion bar, online a search, especially many, find a few, are not very satisfied. The main problem is that most of the

Total Pages: 1800 1 .... 436 437 438 439 440 .... 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.