01.
<%@ Page Language=
"VB"
%>
02.
<script runat=
"server"
>
03.
04.
Sub
Page_Load(sender
As
Object
, e
As
EventArgs)
05.
Dim
strVar1(3)
06.
Dim
strVar2
07.
strVar1(0) = 1
08.
strVar1(1) = 2
09.
strVar1(2) = 3
10.
strVar1(3) = 4
11.
12.
strVar2 =
"Weerachai Nukitram"
13.
14.
Me
.lblText1.Text = IsArray(strVar1)
15.
Me
.lblText2.Text = IsArray(strVar2)
16.
End
Sub
17.
18.
</script>
19.
<html>
20.
<head>
21.
</head>
22.
<body>
23.
<form runat=
"server"
>
24.
<asp:Label id=
"lblText1"
runat=
"server"
></asp:Label><br />
25.
<asp:Label id=
"lblText2"
runat=
"server"
></asp:Label><br />
26.
</form>
27.
</body>
28.
</html>