JS these days began to contact JSP inside some of the bean's writing, and then think about it, that in fact, in the ASP can also take this idea to do. Although not very pure, not thorough, but can be some logical processing separation, more suitable
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
Programs | functions | control | Thieves The program functions are used to remove HTML tags from text, and you can control which tags are deleted.
to control the list of deleted labels, you can do this by adding/removing tags to the TagList
function ' Determines whether the filename is legal
Function isfilename (afilename)
Dim serrorstr,inamelength,i
isfilename=true
Serrorstr=array ("/", "\", ":", "*", "?", "" "", " Inamelength=len (afilename)
If inamelength Isfilename=false
Enlarge
Class dealimgsizeDim asoPrivate Sub Class_InitializeSet Aso=createobject ("ADODB.stream")Aso. Mode=3Aso. Type=1Aso. OpenEnd SubPrivate Sub Class_TerminateSet aso=nothingEnd Sub
Private Function bin2str (Bin) Dim I, Str, Clow for I=1 to
Asp.net|iis saw a drunk solution thousand sorrow of the ASP.net version of the IIS directory, think of the previous thought to the code to IIS to increase the host head, but has not to study, today, while interest, decided to solve the problem.
Asp.net| Multithreading
System.IO.Stream iStream = null;
Buffer to read 10K bytes in chunk:byte[] buffer = new byte[10240];
Length of the file:int length;
Total bytes to read:Long dataToRead;
Identify the file to download including its path.string
Asp.net| Special effects general graphics processing including graphics amplification, graphics, graphics, rotation and stretching effect. In this section, we learn to use GDI + to handle these operations through an instance.
Create a new Web Form
ado| Programming | insert | Data |ado simple display record already mastered, now need is through ASP to insert information content into the database.
One, own database Cnbruce.mdb
The purpose of this database is to be inserted into the data, you
The advanced AspJpeg is a very powerful picture processing component, the pure English version. However, there has been a free version and cracked version, but the detailed and in-depth introduction of the article is not much, even if there is only
Resolve | data | database | problem | When you perform a query for a database, you often encounter situations like this:
For exampleYou want to query his user name and his password in a user database, but it happens that the user has a special
Asp.net| paging in a Web application, paging through a large database result set is a well-known problem. Simply put, you don't want all of your query data to appear on a separate page, so it's more appropriate to have a pagination display. Although
Attack | Design run test.htm after password login test ~!
-------------------------test.htm code is as follows:
marginheight= "1" border= "0" scrolling= "no" >
--------------------------test.asp code is as follows:
' This code is only for
Online Rem #####################################################################################
Rem # Online Upgrade class declaration
Class cls_oupdate
Rem #################################################################
Rem # Description: 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
It was written by a friend of the web forum.
Imgpath= "Default_22.gif"
Set Pp=new Imginfo
W = PP.IMGW (Server.MapPath (Imgpath))
h = pp.imgh (Server.MapPath (Imgpath))
Set pp=nothing
Response.Write " width: &w&"; High: "&h
Class Imginfo
Dim aso
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
Asp.net| Date | experience | Conversion date to a string is almost always the work of every project, no matter what development tool you use. Using convert or cast in SQL Server makes it easy to convert dates into strings of various formats, in
Asp.net| Server | control | control DEVELOPMENT
InPrevious Article, the concept of "complex attributes" has been mentioned. The maximum characteristic of a complex property is that the type of the property is a class that itself has attributes,
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