There are various types of places where you will write your
code. As mentioned already, you can create delimiting sections where you would write your
code. Some other types of code will require that you create your code in the
head section. To write ASP.NET code in the head section, you must create a script.

Creating a Script

To get a script in the head section, start a <script> tag
and close it with an end </script> tag. Here is an example:

After doing this, you can create your code between the
starting <script> and the end </script> tags.

When writing your code, because you have determined that the
page will use the Visual Basic language, you can simply write your code as you see fit.
To let you specify the language of your code, the <script>
tag is equipped with an attribute named Language. To specify the
language, assign it to the Language attribute. Here is an example: