can i call my function inside my server tag?
public string Mytext()
{
}
And
<as开发者_开发知识库p:Label ID="lbl" runat="server" Text="Mytext()"><asp:Label>
You can do:
<asp:Label ID="lbl" runat="server"><%=Mytext()%><asp:Label>
Yes, using Expression syntax, e.g.,
<asp:Label ID="lbl" runat="server" Text="<%$ Mytext() %>"><asp:Label>
精彩评论