J
Jan
Hi,
I defined a function like this:
Public Function myfunction(ByVal myvar As Object) As String
...
Return xyz
End Function
in aspx file, i use it like this:
<asp:Literal ID="lit" runat="server" Text='<%# myfunction(Eval("myfield"))
%>' />
Now i defined a class with the same function like this:
Public Class descr
Public Shared Function myfunction(ByVal myvar As Object) As String
.....
Return xyz
End Function
End Class
My question is: how to use that class in the aspx file?
Thanks
Jan
I defined a function like this:
Public Function myfunction(ByVal myvar As Object) As String
...
Return xyz
End Function
in aspx file, i use it like this:
<asp:Literal ID="lit" runat="server" Text='<%# myfunction(Eval("myfield"))
%>' />
Now i defined a class with the same function like this:
Public Class descr
Public Shared Function myfunction(ByVal myvar As Object) As String
.....
Return xyz
End Function
End Class
My question is: how to use that class in the aspx file?
Thanks
Jan