M
m.a
Hello,
I know that I can do this:
but how can I do this:
<asp:Label runat="server" ID="test" text='<%# GetAString()%>' ></asp:Label>
where GetAString() is a C# function returning a string (sample as follow):
public static string GetSString()
{
return "test";
}
when I add the above line to my aspx page, I am not getting any error, but
nothing for label is shown when it should show test.
Any suggestion on what is the problem?
Regards
I know that I can do this:
</asp:Label>
but how can I do this:
<asp:Label runat="server" ID="test" text='<%# GetAString()%>' ></asp:Label>
where GetAString() is a C# function returning a string (sample as follow):
public static string GetSString()
{
return "test";
}
when I add the above line to my aspx page, I am not getting any error, but
nothing for label is shown when it should show test.
Any suggestion on what is the problem?
Regards