here'is my 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.
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 (" ")
. So try this
<asp:Label ID="EmployeeIDlbl" runat="server" Text='<%# GetLabelCaption("Judges", "Employee Number",CaptionType.EditLabel) %>'></asp:Label>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.