ASP tutorial-Generate static HTML file instance code'======================================================' File name: inc/clstempindex.asp' File function: Home class' Last Updated: 2008.08.10'======================================================
Classic ASP Paging program code
Class Cls_page
'**************************************************' Function name: showpage' Function: Show pagination' Parameters: as follows' strFileName: The following file, such as xxx.asp?page=' Xtotalnum:
Abs (number)
Returns the absolute value.
Array (arglist)
Creates an array.
ASC (String)
Returns the ANSI code for the first character of a string.
ATN (number)
Returns the inverse chord value.
CBool (expression)
Converts to a Boolean data type
Beginners programming friends often like to collect some very "wonderful" programming skills, however, the accumulation of skills often did not improve the quality of the program, but to guide some programmers blindly pursuit of strange and new,
Usually when we write ASP, we usually use VBScript or JavaScript.
JavaScript is the use of function to implement the class, very cumbersome, and the effect is unpleasant. VBScript can implement classes, but there are also significant functional
How to use ASP to write the website Statistic system (IV.)
This article only does the method discussion.
Can collect the data we all can gather, then we begin to compile the ASP the statistic page.
This page we call the Count page,
Building a running platform in WinXP is simple and does not have much attention. But building in Windows 2003 server is cumbersome. The main points to be noted are the following:
1, uninstall the old version first, and then reinstall. It is
When you encounter a requirement in your project, you need to convert a section of HTML to a generic text return, and a universal regular expression comes in.
Regular expressions to save you, the code is as follows:
The code is as
asp.net routing is part of the asp.net mechanism, first understanding some common classes and objects.1.RouteBase class.The core of the routing system is the route object, and each routing registration (different URL pattern) corresponds to a route
What buttons need to be displayed in a message box where OK and cancel are displayed
The code is as follows
Copy Code
MessageBoxButtons Messbutton = Messageboxbuttons.okcancel;
"Are you sure you want to exit?"
Test A
The code is as follows
Copy Code
Public ActionResult Index (string arg){if (arg = = null){return Content ("null");}else if (arg = = ""){Return Content ("empty");}Else{return Content (ARG);}}
Test Two
Dim Oupfilestream
Class Upload_fileDim form,file,versionPrivate Sub Class_Initialize' Define variablesDim requestbindate,sstart,bcrlf,sinfo,iinfostart,iinfoend,tstream,istart,ofileinfoDim ifilesize,sfilepath,sfiletype,sformvalue,sfilenameDim
In the previous period, the author briefly introduced some basic knowledge about VBScript, one of ASP scripting languages. In this period, I will continue to explain how to compile VBScript, by presenting a series of examples of VBScript in ASP
1. Register the asyncpostbackerror event of scriptmanager, implement it on the server, and throw an exception that has been processed (based on whether the event is null, you may need to throw e. exception or e. exception. innerexception)2. The
Aspx accepts files on the aspx page. You can use HtmlInputFile. However, if you want to accept files post on the Html pageIt is not easy to do. I follow the asp method as follows. I tested it myself and shared it with you. You can restrict it.File
// Development environment: Windows 2000, SQLServer2000, and. Net Framework SDK official version// Development language: C #, ASP. Net// Introduction: saving and reading images in the database// Author: engine/*Note: In ASP, we use Request.
This article will create a DataGrid containing the CheckBox control, which allows you to select multiple columns for detailed browsing. If you have not recovered any way to obtain this function for dynamic SQL statements, you must use the IN
In the end, users need to deal with files. Folders are only used for convenient management. Uploading and downloading files has become an important part of the "network hard disk" function design.1. Interface layoutThese functions involve two
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