Generally what you do is put a flower box at the top of the page, like this, quite self explanatory
' **************************
' * Page: pagename.asp *
' * Arguments: arg 1 - arg 1 description *
' * arg 2 - arg 2 description *
' * Written By: name *
' * Created Date: 19 Aug 2007 *
' * Description: description of the page purpose *
' * *
' * Updated By Date Modifications *
' * ----------------- ----------- --------------------------
' **************************
Then above each funcion/sub you can do the same, or just use a one liner
' This is a comment to describe a sub
All other comments are generally 1 liners
RedK
Main Topics
Browse All Topics





by: NicksonKohPosted on 2007-09-17 at 18:28:29ID: 19909623
Hi BuddhaNature,
Urmm... This is gonna be tough. Almost everyone have their own style and I rarely see ppl following such a rule.
The most common is to write an overview at the top of the page to describe the purpose of the page. Other than that is to write comments on each section of the code especially those places with more complicated logic. I also find SQL comments to be one of the most important.
Cheers,
NicksonKoh