<%@Page language="vb" %>
<script runat="server" language="vb">
Sub Page_Load(Source As Object, E as EventArgs)
Dim AnimalArray(4) as string
AnimalArray(0) = "Dog"
AnimalArray(1) = "Cat"
AnimalArray(2) = "Elephant"
AnimalArray(3) = "Lion"
AnimalArray(4) = "Cat"
MyLabel.Text = AnimalArray.GetValue(2)
End Sub
</script>
<html>
<form id="Form1" method="post" runat="server">
<asp:label id="MyLabel" runat="server" />
</form>
</html>
|