Current location - Quotes Website - Personality signature - How to run asp program in win7
How to run asp program in win7
How to run asp files under windows7 system?

ASP, which means "dynamic server page", is the same background scripting language as popular PHP. ASP has been popular for some time. Now many programmers have been exposed to and used ASP before. Although it is not mainstream now, there are still many websites that use ASP as the background. Many novices don't understand ASP and don't know how to open ASP files. Then, the following is a brief introduction (divided into two types: running ASP files and editing ASP files). 1. First, you need to match the running environment. The server needed to run ASP files is IIS server, so we must install and configure IIS server. In fact, compared with other servers, IIS is much simpler, because it comes with windows, so just install the necessary components.

2. Come and install IIS if you know it. First, open the control panel (I use windows2003 as the operating system, and many websites use it as the default server, so I take this as an example), find the option to add or delete programs (as shown in the red line below), and then click Enter.

3. Then we will see the interface of adding or removing programs, click Add and Remove windows components, then find the application server options, click Details, select all options, and click OK (I have marked all the operation steps below, which should not be difficult to find).

4. Click OK to return to the upper interface, and then click Next, and the system will automatically install the option just selected for us. The installation process is very fast, so wait a moment to finish, and finally click Finish. At this point, IIS server has been successfully installed.

5.

After the installation is completed, we can configure the IIS server. Double-click the IIS server, find the website option, then right-click, select the new option, and finally click the website to create a new website. I won't elaborate on the specific steps of building the station. I've had similar experiences before. Select the root directory of the website when building it. Select the directory where the ASP file we need to open is located, and the host header should be set to localhost to facilitate our local test.

6. Then we can open the ASP file, enter localhost/ your ASP file name in the browser, and then click Enter. Let's enjoy our achievements (as shown below).

The following are ways to edit asp files:

1. Notepad: The default ASP file cannot be opened by double-clicking. Usually use Notepad to edit ASP files. Notepad has a single function and can only perform some simple operations. Moreover, when your ASP file code is UTF-8, there will be problems when using Notepad, and the file will become a signature file, which will cause many unknown problems.

2. Text editors: In order to facilitate the editing of various files, many text editors have been introduced, which are very powerful. When using them to edit ASP files, many grammars will be marked in red, which helps us to judge whether the function or language structure is written correctly. Of course, the above-mentioned signature tampering will not occur.

Precautions:

Different operating systems have different versions of IIS. The IIS version of windowsxp is 5. 1, the version of windows2003 is 6.0 and the version of windows7 is 7.0.

After IIS server is installed by default, you may not be able to create shortcuts on the desktop. For convenience, we can create our own method and start menu->; : All programs-> : management tools-> You can find the IIS server option, and then right-click the send to desktop shortcut.

Different versions of IIS servers operate in different ways. This experience takes IIS6.0 server as an example.

It is recommended to use a text editor to edit ASP files, because editing UTF8 files with Notepad will make the files signed and errors may occur.

I hope my answer can help you. If you are satisfied, please give me the best answer, give me a reward and praise!

Asp command definition?

ASP has two meanings: one is the abbreviation of English ApplicationServiceProvider, which means network application service provider; The other is the abbreviation of English ActiveServerPage, which is a dynamic web technology introduced by Microsoft.

MicrosoftActiveServerPages is what we call ASP.

Actually, it is a server-side scripting environment developed by Microsoft, and ASP is included in IIS3.0 and 4.0.

Through ASP, we can combine HTML pages, ASP commands and ActiveX.

Component to build dynamic, interactive and efficient WEB server applications. Using ASP

You don't have to worry about whether the client's browser can run the code you wrote, because all programs will be executed on the server side, including all embedded in ordinary

Hypertext markup language

Write a program script in. After the program is executed, the server only returns the execution result to the client browser, which reduces the burden of the client browser and greatly improves the interaction speed.

The following are some unique features of ActiveServerPages:

1. Use easy-to-understand scripting languages such as VBScript and Jscript, combined with HTML.

Code, you can quickly complete the application of the website.

2. It is easy to write without compilation, and can be executed directly on the server side.

3. Use a common text editor, such as Windows.

Notepad, you can edit the design.

4. Regardless of the BrowserIndependence, the client only needs to use executable HTML.

Code browser, you can browse the content of web pages designed by ActiveServerPages. active

The scripting languages (VBScript, Jscript) used by ServerPages are all on the WEB.

Server-side execution, the client's browser does not need to be able to execute these scripting languages.

5.ActiveServerPages is compatible with any ActiveXscripting language. In addition to being available

Besides VBScript or Jscript, it is also designed with plug-ins.

Use other scripting languages provided by third parties, such as REXX, Perl,

Tcl and so on. Script engine is a COM(ComponentObjectModel) object that handles script programs.

6.ActiveServerPages

The source program will not be transmitted to the client browser, so it can prevent the source program from being copied by others and improve the security of the program.

7. You can use server-side scripts to generate client-side scripts.

8. Object-oriented.

9. ActiveX server components (ActiveX server components)

It is infinitely extensible. You can use VisualBasic, Java, VisualC++, COBOL.

And other programming languages to write the ActiveXServerComponent you need. /p & gt;

P> dynamic server page

There are so many wonderful things. Please fasten your seat belt and I'll take you in.

ASP's dream world. /p & gt;

P> First, let's look at the environment needed to run ASP: ul >.

Li> Microsoft Internet Information Server Version 3.0/4.0 on Windows NT Server/li >

Li & GTMicrosoft Peer Web Service Version 3.0 on Windows NT Workstation/li >

Li> Microsoft Personal Web Server on Windows 95/98/li >

/ul & gt;

P>, as mentioned above, is different from ordinary programs. Asp programs do not need to be compiled.

The control part of the program uses VBScript and Jscript.

Such as scripting languages, when executing ASP

Program, the script program sends a set of commands to the script interpreter (that is, the script engine)

Translated by the script interpreter and converted into commands that can be executed by the server. Of course, like other programming languages,

active server pages

Programming also follows certain rules, if you want to write in your favorite scripting language.

active server pages

Program, then you must have a script interpreter on your server to explain this scripting language. When you install

ASP, the system provides two scripting languages: Vbsrcipt and Jscript, and Vbscript.

It is used as the default scripting language of the system. You can also change the default scripting language of the system according to your preference. For more information about how to change the system default scripting language, see.

ah ref = ASP 1- 1 . htm & gt; Fontcolor = # 026BAA & gt Using scripting language/font & gt In ASP; /a & gt; Articles ".

ASP itself is not a scripting language, it just provides a way to embed HTML.

The environment in which the script program in the page can run. However, learn ASP well.

You must also master its grammar and rules. Now let's get to know and learn gradually.

ActiveServerPages .

Asp programs actually exist on the WEB in the form of plain text with extensions. ASP。

Server, you can use any text editor, ASP.

Programs can contain plain text, HTML tags and script commands. All you have to do is put. white poplar

This program is online.

The virtual directory of the server (which must have executable permissions) can be accessed through.

WWW access ASP program. Learn ASP well

Program design, we must master script writing, so what is a script? In fact, a script is composed of a series of script commands. Just like ordinary programs, scripts can assign values to variables and command them.

net

The server sends a value to the client browser, or it can define a series of commands as a process. To write scripts, you must be familiar with at least one scripting language, such as

VBScript. Script language is a language between HTML and JAVA, VisualBasic, C++ and other languages.

A special language between other programming languages, although closer to the latter, has no complicated and rigorous grammar and rules of programming languages. As before

The scripting environment provided by ASP can support many scripting languages, such as Jscript and REXX.

PERL and so on, which undoubtedly provides ASP programmers with a wide range of play space. active server pages

The emergence of Internet makes the vast network

Designers don't have to worry about whether the client browser supports it. In fact, even if you

The same. white poplar

You don't have to worry about using different scripting languages in the file, because everything will be done on the server side, and the client browser will only get the result of a program execution. You just need to

Statement in. Asp can use different scripting languages.

Win764-bit asp connection access without data?

64-bit IIS has cancelled the support for 32-bit ACCESS database connection, so it needs to be opened manually. Click Start-Run, enter cmd, press Enter, and then open a command line window. Enter: cscriptc: inetpubadminscriptsdutil.vbsetw3svc/apppools/enable32bitapponwin641and press enter to execute.