Learn about Basic ASP Syntax Rules (6 ASP):

6 asp

This basic tutorial will include examples of ASP code, which will make learning ASP easy for you. To Practice either copy them or try to create similar codes on your own and then run them.

How to write an output to the Internet Browser:

Just like a HTML file, ASP file can contain HTML tags in it. The ASP file can also contain some Server Scripts in it which are enclosed in <% and %> known as delimiters.

These Server Scripts are included to be executed on the Server. They can contain expressions, procedures, statement and phrases which are valid for scripting languages you prefer to use.

Write Command:

The write command (response.write) is specifically used for writing an output to a browser. Following is an example which sends the “My first text” to the browser.




<% response.write(“My first text”)%>



There is another shorthand way to do this. This shorthand way is shown in following example:




<% =“My first text”%>




Using Scripts in ASP


Several Scripting Languages can also be used in ASP. But the default scripting language is VBScript. Following is an example which sends the “My first text” to the browser using VBScript:





response.write(“My first text”)





JAVA Script:

As JAVA Script is not the default scripting language, so you need to set it as a default at the top of a particular page in the language specification. Another important advice is: JavaScript is case sensitive, so write your ASP code with uppercase. You should only use lowercase when it is required by the language. Following is an example which sends the “My first text” to the browser using JAVA Script:


<%@ language=”JavaScript”%>




response.write(“My first text”)





Moreover the ASP is usually used with JavaScript and VBScript. But if your requirement is to use other scripting languages like PERL and REXX. Then you need to install their script engines separately.


For more visit next posts in this category.To go back to Contents of this tutorial: ASP Active Server Side Scripting Contents


45 Responses to Learn about Basic ASP Syntax Rules (6 ASP):

  1. H-C-G says:


    Such wonderfull post on here today….

  2. image board says:

    Only wanna input that you have a very nice web site , I love the style it actually stands out.

  3. Celplireedo says:

    Hello. Interesting site you have.

  4. Found your site on Reddit today and really liked it.. I bookmarked it and will be back to check it out some more later.

  5. GoogleTest says:

    […]please stop by the websites we comply with, which includes this one, as it represents our picks in the web[…]

  6. Really enjoyed this article post.Thanks Again. Want more.

  7. Hola! I’m amazed with your Blog, and think that it is really informative. Is this a paid theme or did you modify it yourself? It’s rare to see such a nice blog like this one these days… Cheers.

  8. I loved reading such a great article. Such insighful writing is rare these days. Informed comment like this has to be lauded. I’ll certainly be looking in on this blog again soon!

  9. What’s Going down i am new to this, I stumbled upon this I have discovered It positively helpful and it has aided me out loads. I’m hoping to give a contribution & assist different users like its aided me. Good job.

  10. I will immediately grab your rss feed as I can’t to find your email subscription hyperlink or newsletter service. Do you have any? Kindly allow me realize so that I may subscribe. Thanks.

  11. I’ve been exploring for a little bit for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this website. Reading this info So i’m happy to convey that I have a very good uncanny feeling I discovered exactly what I needed. I most certainly will make certain to do not forget this website and give it a look regularly.

  12. more says:

    Hello! Someone in my Myspace group shared this website with us so I came to check it out. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Outstanding blog and wonderful design and style.

  13. here says:

    great points altogether, you simply gained a emblem new reader. What could you suggest in regards to your publish that you just made a few days in the past? Any sure?

  14. this site says:

    Somebody necessarily lend a hand to make seriously posts I’d state. That is the very first time I frequented your web page and so far? I surprised with the analysis you made to create this actual submit extraordinary. Wonderful task!

  15. fjaiowjaoiw says:

    Learn about Basic ASP Syntax Rules (6 ASP): | online web design school, best online web design schools, online web design classes, building web page, I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You’re incredible! Thanks! your article about Learn about Basic ASP Syntax Rules (6 ASP): | online web design school, best online web design schools, online web design classes, building web page,Best Regards Cassetta

  16. It’s very easy to find out any matter on web as compared to books, as I fount this article at this web site.

  17. It is not my first time to go to see this web site, i am browsing this site dailly and obtain fastidious information from here everyday.

  18. Blitz Krieg says:

    Good blog! Thank you for your information shared.

  19. Wow, amazing blog layout! How lengthy have you been blogging for?
    you made blogging glance easy. The overall look of
    your web site is wonderful, let alone the content!

  20. Issac Maez says:

    I simply want to mention I am newbie to weblog and truly loved your blog. Probably I’m going to bookmark your site . You definitely have remarkable writings. Thank you for sharing your web-site.

  21. Hmm is anyone else having problems with the pictures
    on this blog loading? I’m trying to determine if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  22. Hello to all, as I am genuinely keen of reading this blog’s post to be updated on a regular basis.
    It carries nice information.

  23. This is my first time pay a visit at here and i am truly pleasant to
    read everything at alone place.

  24. Tracey says:

    Hi, this weekend is good in favor of me, because this moment i am reading this impressive informative article here at my home.

  25. colby says:

    Wow, wonderful weblog layout! How long have you been running a blog for?
    you make running a blog look easy. The overall glance of your web
    site is fantastic, let alone the content material!

  26. I just want to tell you that I am very new to weblog and definitely liked this web page. Probably I’m planning to bookmark your blog . You absolutely have fantastic writings. Regards for sharing your blog site.

  27. Hello There. I uncovered your blog post applying ask. Now you have an extremely nicely published write-up. I am sure to save the idea and are available back to discover more of this strategies. Was looking for write-up. I am going to surely go back.

  28. I don’t drop many responses, but i did a few searching and wound up here Learn about Basic ASP Syntax Rules (6
    ASP): | Website-School Online Web Tutorials. And I actually do have some questions
    for you if you don’t mind. Is it simply me or does it
    give the impression like some of these comments come across like
    coming from brain dead folks? 😛 And, if you are writing at additional sites,
    I would like to keep up with everything fresh you have to post.
    Could you list of all of your social pages like your linkedin profile, Facebook page or twitter feed?

  29. Thanks for your marvelous posting! I truly enjoyed reading it, you could be
    a great author.I will ensure that I bookmark your blog and may come back very
    soon. I want to encourage that you continue your great job, have a nice evening!

  30. Fine way of describing, and good article to get information concerning my presentation subject matter, which
    i am going to convey in university.

  31. I’m really inspired together with your writing talents as well as with the layout
    in your blog. Is this a paid subject or did you customize it yourself?
    Anyway stay up the excellent high quality writing, it is rare to look a great blog like this one these days..

  32. This piece of writing will help the internet users for building
    up new website or even a weblog from start to end.

  33. Thank you for sharing your thoughts. I really appreciate your efforts and I am waiting for your next post thank you once again.

  34. Hey! Quick question that’s totally off topic. Do you know how to make your
    site mobile friendly? My blog looks weird when viewing from my iphone.

    I’m trying to find a template or plugin that might be
    able to fix this problem. If you have any recommendations, please share.


  35. I simply want to tell you that I am just beginner to weblog and seriously savored you’re web-site. Most likely I’m want to bookmark your blog . You amazingly come with amazing article content. Thanks for sharing your website.

  36. Howdy! This article couldn’t be written much better!
    Looking through this article reminds me of my previous
    roommate! He constantly kept preaching about this. I am going to forward this article to him.

    Pretty sure he’s going to have a great read. I appreciate you for

  37. Thanks for sharing your thoughts about html. Regards

  38. ajs 512 says:

    Tumblr article

    I saw a writer writing about this on Tumblr and it linked to

  39. watch locke says:

    Hi I am so grateful I found your website, I really found you by
    mistake, while I was looking on Yahoo for something
    else, Nonetheless I am here now and would just like to
    say thanks for a remarkable post and a all round enjoyable blog
    (I also love the theme/design), I don’t have time to browse it
    all at the minute but I have bookmarked it and also included your RSS feeds, so when I have
    time I will be back to read much more, Please do keep up
    the great work.

  40. website says:

    Very good info. Lucky me I recently found your site by accident (stumbleupon). I have book-marked it for later!

  41. Kerry Deiss says:

    Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept

Leave a Reply