Program | source code | source Code Class Imgwhinfo ' Get a picture of the width and height of classes, support Jpg,gif,png,bmp
Dim ASO
Private Sub Class_Initialize
Set aso=server.createobject ("ADODB. Stream ")
ASO. Mode=3
ASO. Type=1
ASO. Open
End
Functions | We sometimes encounter the date format may be 2004-1-12, the system automatically removed the month of 0, but sometimes we need the full date format, such as: 2004-01-12 so what to do? Some of the following functions can be easily
Submitting a Form | Submitting a Form
In order for the ASP to minimize server-side workloads, you should use JavaScript more, and submit all submitted fields to the server using JavaScript or VBScript, so that the server does not have to be tested,
In the GridView we can simply add a commandfield delete column to delete a row of information. However, in order to avoid misoperation caused by the deletion of the deletion, the operator to remove the operator to confirm, after the deletion.
First
VBScript
First of all, the ASP (VBScript) class is composed of events and methods (they are members of the composition Class), if we have not been contacted, you can first look at the following instructions (haha, I am now learning to sell,
Asp+|cookie|cookie by default, the session object of asp+ still relies on cookies, but
Config.web file settings, you can make the session object no longer dependent on the browser
Cookies (that is, even if the browser's cookie function is turned off,
when we're writing an asp.net based application, if the code executes an error or detects an exception, the user is generally prompted to "return" or "rewind", or in a multi-step operation, a list/Detailed view interface, also gives the user a link
in use. NET, database access is a very important part, especially in the process of the construction of B/s system, database operation has become almost an essential operation. Stored procedures are useful and important when invoking stored
In ASP.net 2.0, a more convenient configuration file access class is provided, which can be viewed under the System.Configuration namespace. This article provides a common way to get a database string in the development process, and write a method
when creating or modifying a complex ASP.net server-side control, a large amount of time is compiled, waiting for JIT, modification, compilation, JIT ... In such a loop, and two compilations are often time-consuming. In particular, when a control is
Asp. NET's simple introduction: the use of strongly-typed language. Code and content really separate the server-side component model for multiple device compatibility ...
Here we only do a simple introduction, because the relevant articles are
Pagination | Page one. About parameter passing. If there are 46 records in the table and then we typed http.//localhost/display.asp?line=10&page=2 in the address bar (assuming this is the correct path), the browser will show us the 10 records for
Asp+|fso|js
Set js = Server. CreateObject ("ADODB.") RecordSet ")Sql= "SELECT top * from article ORDER BY id DESC"Set JS = conn. Execute (SQL)Do as not js.eofTitle=js ("title")Addate=js ("Addate")Foolcat = Foolcat + "" &title& "" &addate& "
Asp.net|session
Recently to do a business processing system, because its original user system using ASP development, in the new business system used asp.net,asp.net application to use the original ASP user system, so the problem arises, ASP
Interaction
You can create a Web page like senduserinfo.htm (sending user information), where the form is implemented to send the user's name, sex, and message to ourselves, but if we only use HTML we can only give the form a , we can use ASP
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
Speed | Statement program running SPEED test results:
1. The same branching condition is judged: IF is slower than select.
Test with the following program:
Dim tttt1,ttt2
Session ("II") =0
For Sn=0 to 5
Ttt1=now ()
For I=0 to 300000
If session ("II")
Tutorial | 10 Days of learning
Previous section: Deleting Records
Learning Purpose: Learn the basic operation of the database--Modify the record
First look at the code: (Save as exam8.asp can be)
Set Conn=server.createobject
response| Object | Tutorial |response ASP mainly has five built-in (built-in) objects: Server, Request, Response, application, and session. Now we'll explain them by example. The first is the most commonly used response object.
Example 1 using
Menu | Menu Demo: http://goaler.xicp.net/demo/colspanmenu.asp
Class Menus
Public Title, ID, Image, Titlecolor, Target, Background, Headimage, Height, Width, bgcolor, Style
Private MenuItem, Menustr
Private Sub Class_Initialize
Title = ""
ID =
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