Like most language scripts, learning ASP is the best way to try ASP and install PWS or IIS using your own system. You can test the ASP components and functions while learning. In order to facilitate learning, we have compiled some operating scripts to let you feel the power and flexibility of ASP and help you build your VBScripting.
Transfer from: Dynamic Network Production Guide www.knowsky.com
Learning ASP You can do it by browsing the source code from 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 this page of the code, you will see (if your name is "Jane."):
Your Name is Jane
Your page may contain a large number of script sections or a total script, but you are only HTML code from the browsing code, it is sent as an output of the .asp page.
Hello World Now let's take a look at the Hello World, copy the following code in the ASP editor, name a.asp, open in the browse.
Write Hello World in the middle of the ASP script, which will be displayed on the screen.
Congratulations on your user's Hello World sample to use the information we provide. With 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 in any page, it will be automatically loaded into your page:
IT is now <% = Time%>.
You can choose time displayed style and context. As long as the ASP section contains, the local server will write it to the screen.
Whether to choose an example test can be used to use further enhanced examples, or if you want to know some content about BOX, you can use time as a variable to change the background color, font color, welcome language and even determine which page being shown.