【发布时间】:2016-09-02 23:52:08
【问题描述】:
对 ASPX 非常陌生,我正在尝试更新一些现有代码。我有一个标签
asp:Label ID="lblProjectGoal" runat="server" Font-Bold="true"
Text=<%= SPCProjectYear %>+" Goals:"
AssociatedControlID="txbProjectGoal" />
并且我需要将年份作为一个变量,我可以在 text 属性中的其他 <asp:Label> 标记中使用不同的字符串结尾。任何人都知道 Text=+" 目标:" 的最佳语法吗? Visual Studio 告诉我语法错误。谢谢。
【问题讨论】:
标签: c# asp.net text attributes label