M
Miro
I am really having trouble with this. I am trying to call a function from
my .vb file within my .aspx file.
My current results is that nothing happens.
Wondering if someone can help me out.
<form id="form1" runat="server">
<div>
<br />
<asp:Label ID="Label1" runat="server" Text="<%= helloworld()
%>"></asp:Label>
<br />
</div>
</form>
and from my .vb file:
Partial Class _Default
Inherits System.Web.UI.Page
Function helloworld() As String
Return "From.vb"
End Function
End Class
How do I get the label1 to get the text from the helloworld function on
load?
I know I can use "on_load event", but I want to try to call a function like
this just like as if it was databound.
Thanks,
my .vb file within my .aspx file.
My current results is that nothing happens.
Wondering if someone can help me out.
<form id="form1" runat="server">
<div>
<br />
<asp:Label ID="Label1" runat="server" Text="<%= helloworld()
%>"></asp:Label>
<br />
</div>
</form>
and from my .vb file:
Partial Class _Default
Inherits System.Web.UI.Page
Function helloworld() As String
Return "From.vb"
End Function
End Class
How do I get the label1 to get the text from the helloworld function on
load?
I know I can use "on_load event", but I want to try to call a function like
this just like as if it was databound.
Thanks,