<script runat="server">
dim strName as String = "A"
dim myArray() as String = {"Hello", "World"}
dim myString as String = "AA"
sub Page_Load(Sender as Object, e as EventArgs)
Page.DataBind()
end sub
</script>
<html>
<form runat="server">
My Name is <%# strName %>
<asp:Listbox datasource='<%# myArray %>' runat="server" />
<asp:Textbox text='<%# myString.ToString %>' runat="server" />
</form>
</html>
|