<html>
<body>
<form id="form1" runat="server">
<% For i As Integer = 0 To 5 %>
<% Response.Write("<br>" & i.ToString())%>
<% Next%>
</form>
</body>
</html>
<script runat=server>
Protected Function GetTime() As String
Return DateTime.Now.ToString("t")
End Function
</script>
<html>
<body>
<form id="form1" runat="server">
Current server time is <% =GetTime()%>.
</form>
</body>
</html>