Call server function in server tag Anonymous User 1721 23-Aug-2014 Can I call my function inside my server tag? public string Mytext(){} And <asp:Label ID="lbl" runat="server" Text="Mytext()"><asp:Label> asp.net asp.net Updated on 23-Aug-2014
Sumit Kesarwani
23-Aug-2014Yes, using Expression syntax, e.g.,
<asp:Label ID="lbl" runat="server" Text="<%$ Mytext() %>"><asp:Label>