<%@ Page Language="VB" %>
<script language="VB" runat="server">
Function buildString() As String
Dim objBuilder As StringBuilder = New StringBuilder
Dim i As Integer
For i = 0 To 500
objBuilder.Append("my string " & i & "<br>")
Next
Return objBuilder.ToString()
End Function
Sub Page_Load(ByVal Source As Object, ByVal E As EventArgs)
Response.Write(buildString())
End Sub
</script>
<html>
<head>
</head>
<body>
<form id="Form1" runat="server">
</form>
</body>
</html>