Friday, December 14, 2007

How to start writing your first ASP script?

How to start writing your first ASP script?

Now, we can start to write ASP script. How can the system identify the HTML codes and ASP scripts?

We can use the <% and %> to identify the part for ASP scripting.


For example:

<% Response.write("Hello") %>


Normally, ASP scripts will be executed in the server side. After compiled the ASP script, the client side will only display the HTML codes.

Now, the problem is how to let the server know which file containing the ASP scripts?

We will need to save the file that contained the ASP scripts as ".ASP" file. This will allow the web server to identify it as ASP file.

No comments: