In an ASP file, can Java Script code lines appear within a <% %> block? I can only find VB examples. Testing attemps to use Java Script there kill the application, resulting in a server error message.

If permitted, how can writing to a page be accomplished?