Recommended: A brief discussion of 19 basic tips for ASP dynamic web programming 1. The current date and time command is %=now%> 2. The method of ASP to obtain table data input is to use a built-in object-Request, which varies from get and post. 3. If you want to write it yourself in VB or other language
Like most language scripts, the best way to learn ASP is to try ASP yourself and install PWS or IIS using your own system. You can test ASP components and functions on your own server while learning. For easy learning, we have compiled some operation scripts to let you feel the power and flexibility of ASP and help you build your VBScripting font.
Learning ASP can be done by browsing the source code of other websites. In fact, the ASP portion of your page can be performed before the content is written to the screen. So, you can write this on your page:
<% Response.Write Your name is & strName %>
When you browse the code on this page you will see (if your name is Jane.):
Your name is Jane
Your page may contain a large number of script parts or total scripts, but all you see from the commands that browse the code is HTML code, which is sent as the output of the .asp page.
Hello World
Now let’s take a look at the Hello World script, copy the following code in the ASP editor, name it a.asp, and open it in browsing.
| The following is the quoted content: <HTML> <HEAD> <TITLE>Hello World Sample</TITLE> </HEAD> <BODY> <% Response.Write Hello World %> </BODY> </HTML> |
In the middle of the ASP script, Hello World is written and it will be displayed on the screen.
Congratulations to your users
Hello World sample uses the information we provide. In the same way, you can use the built-in VB script function to access some information, such as data and time. For example, you don't have to put the current time on any page, it will automatically load into your page:
The following is the quoted content: It is now <%= Time %>. |
You can choose the style and context of the time display. As long as the ASP part is included, the local server will write it to the screen.
Whether the selection of the example test can be used further enhance this example, or whether you want to learn something about the box, you can use time as a variable to test in order to change the background color, font color, welcome language, and even determine which page is displayed.
Share: parse ASP without component upload, with progress bar, multi-file upload The following is the quoted content: Example.asp