C
Chris
Hi,
I use code-behind, but how can i pass a variable from test.aspx.vb to
test.aspx?
Test.aspx.vb contains this:
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
dim lol as string
lol="Carl"
.....
In test.aspx, i want to have: hello Carl
So i did:
<form id="form1" runat="server">
<asp:Label Runat="server">Hello <%=lol%></asp:Label>
But i get the error: "Name 'lol' is not declared"
Thanks
I use code-behind, but how can i pass a variable from test.aspx.vb to
test.aspx?
Test.aspx.vb contains this:
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
dim lol as string
lol="Carl"
.....
In test.aspx, i want to have: hello Carl
So i did:
<form id="form1" runat="server">
<asp:Label Runat="server">Hello <%=lol%></asp:Label>
But i get the error: "Name 'lol' is not declared"
Thanks