How to create robust, accurate, maintainable, and performance-Good ASP applications? What do you want to do? Not doing what? In this paper, the main check-points (check point) is given in the form of outline.
What is an ASP
Active
Web page | Download
Function Replaceremoteurl (SHTML, Ssavefilepath, Sfileext) '// '//remote save Picture '///////////////////////////////////////////////////// ' role: Replace the remote file in the string with a local file and save the
Counter
Dim Fso,f,no,i ' Defining variables is definitely a good habit
Set fso = CreateObject ("Scripting.FileSystemObject") ' establishes an instance of an object
Set f = fso. OpenTextFile (Server.MapPath ("count.no"), 1, True) '
Tutorial when one day, your mood suddenly become very bad, but coincidentally, in your guest book, your net friend left a very exciting words, so you quickly regained the happy mood. But after a while you're feeling bad again, but this time you're
iis| Safety
Introduction: I recently received a task to design a scheme to provide folder security access for Web sites.
This is done with the idea that a user can go to the site and then automatically go to the default folder, which lists files
asp.net|css|erp| optimization asp.net 2.0 adds built in MasterPage support, which is a great convenience for us. However, after a period of use, I found that MasterPage is not so perfect: nested MasterPage cannot support the design-time interface,
Interface
[request samples]
Username = request.cookies ("name")
Password = request.cookies ("Pass")
' You can insert user data queries here. and replace the following default password "admin"
If username = "" or password <> "admin" then
%>
Let's learn to look at the response object. In fact, we have been using the Write method of this object in previous tutorials.
Here we use the Response object to set cookies.
?
Open VB6 and create a new ActiveX DLL project. The project name
Asp.net|erp believes that everyone has used the nested masterpage feature under ASP.net 2.0, which is powerful enough to allow users to create a template page, and then easily apply to other pages. and the stencil page can also be nested, but the
Asp.net| Object | data | Show in learning DataSet objects, we encounter a concept: DataView. This object represents a way to view the data tables in the dataset by default by arranging the data in tabular form, and the data is sorted according to
Window| Program | error | resolution
Because of work, I often need to use ASP to develop a number of small programs, under Windows 2000 development and use of related programs generally do not have any problems, and it is easy to solve. But because
Programs usually when we write ASP, usually with 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
asp.net|web| Security (1) in Web.config configuration
Modify options in
The validation mode is set to form and the validation page is
Do not allow anonymous users
After add a page that does not validate to use the database to access the
In ASP, you can send a simple message by calling the CDONTS component, which is natural in asp.net. The difference is that, in the. Net framework, this component is encapsulated into the System.Web.Mail namespace.
A typical mail-sending program is
Program | Access "Get the address of the visitor
Ip=request.servervariables ("REMOTE_ADDR")
' The allowed IP address segment is 10.0.0.0~10.68.63.255
allowip1= "10.0.0.0"
Allowip2= "10.68.10.71"
Response.Write Checkip
Disconnect | recordset | Detailed in our database programming with ASP's built-in ADO components, typically, you open a connection at the beginning of the script and close it at the end of the script, but in most cases the connection is open more
Asp.net|css
There are many ways to change skin, the simplest is usually to switch page CSS, and CSS is usually written in the external CSS file. Then switch CSS is actually the replacement HTML link href path. I searched the internet for the next.
xml| Data | Database save. Asp
' Constants file included above.
' Delete if the file exists
Dim objFSO
Set objFSO = Server.CreateObject ("Scripting.FileSystemObject")
If objfso.fileexists (Server.MapPath ("Db_xml.xml")) Then
objFSO.DeleteFile
statement when we write ASP database programs, we usually use SQL statements, and when we add data and update the data, we usually use the way: INSERT into message (Incept,sender,title,content,sendtime, Flag,issend) VALUES (' "&incept (i) &", '
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