AspTutor

 


Johny Learns

Active Server Pages(ASP)

Johny : Dad, What is the difference between HTML and ASP?

Dad: HTML displays static pages. But ASP can display ACTIVE PAGES.

Johny : I don't understand.


Dad : See  the HTML code of EXAMPLE.HTM

         <html>

             <head>

                 <title>Example</title>

            </head>

            <body>

                          Today is 31/10/2007

            </body>

        </html>

If you opened this page using Browser, the output of this page will  be " Today is 31/10/2007". But if you opened the same page TOMORROW, then also you will see " Today is 31/10/2007" That means, the output is STATIC.


Now let us see the code of EXAMPLE.ASP

        <html>

             <head>

                 <title>Example</title>

            </head>

            <body>

                          Today is <%Response.Write(Date())%>

            </body>

        </html>

Today the output of this code will  show today's date. But TOMORROW if you open this same page, you will get tomorrow's date. So the output is NOT STATIC. It is ACTIVELY CHANGING ITS CONTENTS. The code which lies between   "<% "and  "%>" is normally VBSCRIPT.  So ASP is basically  HTML + VBSCRIPT.

Son: So, without learning HTML, it is not possible to to learn ASP?

Dad : You are right.. 


Johny : How to learn HTML?

Dad: Lot of best tutorials are there in the Internet. I like www.w3schools.com

Johny : How to create a table in HTML?

Dad : Go to thischapter.            

J

 Johny : I want a complete list of code for an ASP project.

Dad : For you, I have written a very small ASP Project on PHONE BOOK.  


Johny: In many  websites, I have seen beautiful DROP DOWN MENUs. Is it difficult to create?

Dad : Yes. You should know javascript or dhtml. But  lot of free downloads are there in the Internet. You search for TIGRA MENU using google.com. This menu is 100% free even for business applications.