Today in the group, someone asked what format ASP is and how to open ASP files. In fact, ASP is the backend language of Microsoft. Many websites are made of ASP. Although PHP is used more now, here is a brief introduction to what ASP is. , what can it do?
1. What is ASP?
Literally speaking, ASP contains three meanings:
1. Active: ASP uses Microsoft's ActiveX technology. ActiveX (COM) technology is an important foundation for current Microsoft software. It uses the technology of encapsulating objects and calling objects by programs to simplify programming and strengthen cooperation between programs. ASP itself encapsulates some basic components and commonly used components, and many companies have also developed many practical components. As long as you can install these components on the server, you can quickly and easily build your own WEB application by accessing the components.
2. Server: ASP runs on the server side. This way you don't have to worry about whether the browser supports the programming language used by ASP. The programming languages of ASP can be VBSCRIPT and JSCRIPT. VBSCRIPT is a simplified collection of VB. People who know VB can get started quickly and easily. However, the Netscape browser does not support VBSCRIPT on the client side, so it is best not to use VBSCRIPT on the client side. On the server side, there is no need to consider browser support issues. Netscape browser can also display ASP pages normally.
3. Pages: ASP returns standard HTML pages, which can be displayed normally in commonly used browsers. When viewers view the page source file, they see the HTML code generated by ASP, not the ASP program code. This will prevent others from plagiarizing the program.
From this we can see that ASP is a simple and convenient programming tool for developing WEB applications under IIS. After understanding the basic syntax of VBSCRIPT, you only need to know the purpose, attributes, and methods of each component, and you can easily write your own ASP system.
2. What can ASP do?
ASP is a programming technology based on WEB, which can be said to be a type of CGI. It can complete all the functions of previous CGI programs, such as counters, guest books, bulletin boards, chat rooms, etc. ASP can easily realize dynamic control of page content and display different page content according to different viewers. The viewer doesn't notice it at all, it's like a page specially made for him. Using a variety of components, ASP can complete extremely powerful functions. Using FileSystemObject, you can operate files on the server, such as browsing, copying, moving, deleting, etc. With the support of ADO (Active Database Object, dynamic database object), ASP is very easy to operate the database. You can even manage the database on the remote host like a local database and perform various operations on tables and records. Using CDONTS (Collaboration Data Objects for NTS, NTS collaboration data objects), you can send and view emails and implement WEBMAIL functions. Combined with WSH (Windows Scripting Host), you can manage NT hosts, such as NT user management, IIS virtual host settings, EXCHANGE mailbox settings, etc., as conveniently as managing a local machine.
3. How to open asp
ASP is actually a text file, which can be opened with Notepad to view the code. However, ASP generally needs to be executed to see the effect we want, so an ASP running environment is required. Generally, we purchase a virtual host that supports ASP.
Of course, if we study ASP locally or test the website, we need to set up the ASP operating environment ourselves. Generally we use iis or simple asp running tools. For learning and practical application, we recommend using iis (it is relatively stable, the space we buy is all on iis). If you occasionally test simple asp code, you can use the following tools .
You can open it with the notepad that comes with the system.
asp is a web programming language
asp should be displayed in the web page. Requires service support. For example, you can build an iis server. Then visit this page again. You can see it
The best editing ASP software I urge you to use Dreamweaver.
To put it simply:
1. Install IIS, which comes with Windows and can be found in Add and Remove Components.
2. Place the asp file in a directory, such as c:/asp, then right-click the mouse to open the properties of the directory - "web sharing -" shared folder, give an alias, such as asp, remember the file name of asp, for example called default.asp
3. Open the IE browser and enter http://localhost/asp/default.asp
ASP is the abbreviation of Active Server Page. It is a web page that contains script code using VB Script or Jscript. When the browser browses the ASP web page, the web server will generate the corresponding HTML code according to the request and then return it to the browser, so that what the browser sees is the dynamically generated web page. ASP is an application developed by Microsoft to replace CGI script programs. It can interact with databases and other programs. It is a simple and convenient programming tool. After understanding the basic syntax of VBSCRIPT, you only need to know the purpose, attributes, and methods of each component, and you can easily write your own ASP system. The format of ASP web page files is .ASP.
It can be opened with Notepad, FRONTPAGE, or DW. However, after opening, you can only see the code, not the page. However, please note that some mdb database files are renamed asp. If garbled characters appear, it may be caused by the mdb rename. of.
Another situation where garbled characters appear is that the asp has been encrypted.
If you want to see the page content on your local computer, you must install a running environment that supports ASP. The IIS that comes with WINDOW is fine. If not, just install it. Haha