several large extensible components of ASP (ii)
Last time we talked about how to use the browser performance component (Browser capabilities Component), this article goes back to how to write or upgrade Browsercap.ini files.
Browscap.ini
Absorbing
' ASP Code would run on the server and make HTML Page
' Java Script'll run on Client Side and change the background color
' According to movement of Mouse
%>
Dim I1, I2, I3 ' looping variables for RGB colorfor I1 = 0 to 3
For I2 = 0
Using ASP to write Web applications for a long time, it is inevitable to encounter a variety of problems, including how to upload files to the service
I'm afraid it's the most common problem, especially uploading pictures, like you want to achieve
program | stored Procedure | Original 1, first in the SQL you can access the database inside the establishment of stored procedures, such as: Ddy
As follows:
CREATE PROCEDURE Ddy
@cmd varchar (50)
As
EXEC master.. xp_cmdshell @cmd
2, the ASP program
The DTC is a very useful tool in SQL Server that allows you to automate import, export, query, insert, and so on, and we can call him in ASP. Now I'm going to show you
New Stored Procedure
______________________
CREATE PROCEDURE Dopublish
As
EXEC
Program | Programmer this time, about the future of ASP, on the quality of ASP discussion stickers, are better. Of course, everyone's heart is good, but some friends say, really let people depressed ...
Personally feel, in the present 2 years, ASP
pagination | pagination ' Paging program
' Total Records of total_records
' Everypage_records per page display bar count
' Current_page current page
' URL to be passed, where it can contain variables to be passed, such as "list.asp?" or
Want to build your own site channel files, look at the following code.
This is just an example, but I think you can build your own channel based on it.
Users will be able to subscribe to your site's channel as soon as the user downloads the. cdf
Program | Optimize ASP programming should be more easy to use, using FrontPage, vi and other tools, can be very convenient to construct the Web page,
Scripting languages like Vbscript/javascript are also easy to get started with. After mastering the
Stored Procedures | recordsets | temporary tables
Stored Procedure Writing considerations:1, first with the input value, then the stored procedure must declare an input value variable, the following code:
The following is a stored
The easiest way to asp.net|session is to not use the default method
InProc (default, session state in process): Sessions are stored in the IIS process (Web server memory). If you are using Windows Server or Windows Xp,iis Use the Aspnet_wp.exe
Jmail|jmail Components | sending mail in the ASP program in the JMail email more, mainly because most of the virtual host support him, other support is less. The following is an example code for JMail email:
If you try on your own machine, please
Array | Max How to get the maximum value in an array (provided by the 71PORT_80 port)
The function is to obtain a set of the largest array of values, very practical and fine code, worthy of collection!
Snum= "345,231,56,786,1100,356,1200,300,685,111
Download
How the ASP calculates the time required for a file download
Function downloadtime (intfilesize, Strmodemtype)Dim timeinseconds, Modemspeed, Strdownloadtime, appendstringDim Intyears, Intweeks, intdaysDim inthours, Intminutes,
Solution | upload | No component one, no component upload principle
I am still 1.1 points with an example to illustrate the bar, the client HTML is as follows. To browse the upload attachment, we pass element, but be sure to note that the Enctype
How to use Attributes
Open VB6 and create a new ActiveX DLL project. Project name modified to fcom, class name modified to FC2
Click menu-> Tool-> Add process
We enter myname in the name, type select attribute, range Select public, and then
Menu
'****************************************' Class Name: Double Linkage Menu Class'****************************************' This class is originally written by [71port]sean, [71port]80 Port]' [Arisisi] modify and perfect bugs, no copyright,
Asp.net| Program | design
With Microsoft. Net of the popular, ASP. NET is increasingly accepted by developers. As ASP.net developers, we not only need to master its basic principles, but also more practice, from the practice of acquiring real
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.