Can I call my function inside my server tag?
public string Mytext()
{
}
And
<asp:Label ID="lbl" runat="server" Text="Mytext()"><asp:Label>
Can I call my function inside my server tag?
public string Mytext()
{
}
And
<asp:Label ID="lbl" runat="server" Text="Mytext()"><asp:Label>
Yes, using Expression syntax, e.g.,
<asp:Label ID="lbl" runat="server" Text="<%$ Mytext() %>"><asp:Label>