[英]The server tag is not well formed
here'is my HTML : here'is我的HTML:
<asp:Label ID="EmployeeIDlbl" runat="server" Text="<%# GetLabelCaption("Judges", "Employee Number",CaptionType.EditLabel) %>"></asp:Label>
where: CaptionStyle
is Enumerator
which i previously created , and GetLabelCaption
function returns a string fetched from sql database. 其中:
CaptionStyle
是我先前创建的Enumerator
,并且GetLabelCaption
函数返回从sql数据库获取的字符串。
I wanna know where is the error ?!! 我想知道错误在哪里?!
Put single quotes where you mention text as follows: 将单引号放在您提及文本的位置,如下所示:
<asp:Label ID="EmployeeIDlbl" runat="server" Text='<%# GetLabelCaption("Judges", "Employee Number",CaptionType.EditLabel) %>'></asp:Label>
This will work 这会起作用
You need to put the Text content in single quotes (' ')
instead of double quotes (" ")
. 您需要将Text内容放在单引号
(' ')
而不是双引号(" ")
。 So try this 所以试试这个
<asp:Label ID="EmployeeIDlbl" runat="server" Text='<%# GetLabelCaption("Judges", "Employee Number",CaptionType.EditLabel) %>'></asp:Label>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.