To improve the efficiency of ASP programs, it is sometimes necessary to use SQL Server storage technology in ASP, which is briefly described below. Establishment of stored procedures
Here is a brief description of how to establish a stored procedure
4 the DBC database generated by FoxPro is similar to the MDB database, is a database contains several forms of data tables, so the access method for the DBC database is similar to the MDB database.
Function createdbcrecordset (DBC database file name,
Examples of date and time functions for ASP
You can use date and time functions to get dates and times in various formats
An example of the function syntax
Now () gets the current date and time of the system Dim MyVar MyVar = Today
' MyVar contains
ASP detects whether the domain name registers the code
On Error Resume Nextserver.scripttimeout=9999999Function Gethttppage (Path)t = GetBody (Path)Gethttppage=bytestobstr (T, "GB2312")End Function
Function getbody (URL)On Error Resume NextSet
Involving procedures:
MS IIS
Describe
A Chinese university student discovers the NT website ASP program password Authentication flaw
With
From: benjurry@263.net
The original text reads as follows:
Very early found that many domestic programmers
In fact, in asp.net programming, you don't have to call md5.asp to encrypt your data. Classes in dotnet: System.Web.Security.HashPasswordForStoringInConfigFile ()
public string MD5 (string Str,int code)
{
if (code==16)//16-bit MD5 encryption (32-bit
Collection Attribute Application Select the item you want to work with, and the item you selected will be displayed when you submit the data.1, 2, 3, 4, 5, 6,
When the client selects the item to display, the following ASP page (set.asp) gives the
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
function Download (f,n)' F file full path, n download file filename' On Error Resume NextSet s=createobject ("ADODB.stream")S.mode=3S.type=1S.openS.loadfromfile (f)If Err.number>0 Thenreaponse.status= "404"ElseResponse.contenttype=
'----------------------------------------------------------------------Dim Oupfilestream'----------------------------------------------------------------------' File Upload classClass Upfile_class
Dim Form,file,version,err
Private Sub
Asp file directory and file copy, which I used when writing a system upgrade, is to make the files in the current folder under the system directory, replace the old filesSub fs ()Set fsobject = server. CreateObject ("scripting. filesystemobject
IntroductionTip 1: cache common data on a Web serverTip 2: cache common data in Application or Session objectsTip 3: cache data and HTML on the Web server diskTip 4: avoid caching non-flexible components in the Application or Session objectTip 5: Do
Windows 2003 IIS6.0 unable to execute ASP solutionEnable Asp supportWindows Server 2003 is installed by default. IIS 6 is not installed and must be installed separately. After IIS 6 is installed, ASP support must be enabled separately.Enable Asp and
My code is simple'------------------------------------------------------------'Use form submission to generate static homepage code'Make sure your space supports FSO, and the homepage code has less content.'-------------------------------------------
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.