B
Ben
Hi,
in code-behind, i have:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim a As Integer
a = 5
End Sub
i want to use that variable in the aspx file:
<body>
<form id="form1" runat="server">
<%=a%>
</form>
</body>
but i get the error: name 'a' is not declared.
Where and how do i have to declare 'a'?
Thanks
Ben
in code-behind, i have:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim a As Integer
a = 5
End Sub
i want to use that variable in the aspx file:
<body>
<form id="form1" runat="server">
<%=a%>
</form>
</body>
but i get the error: name 'a' is not declared.
Where and how do i have to declare 'a'?
Thanks
Ben