This sort of thing is covered in your MSDN Library documentation. Use the Search tab and search on "script control" (with the quotes). The first few hits will be the most relevant.