I'm trying to do something like this:
<asp:ListItem><div><%= Message.Success %></div></asp:ListItem>
but it gives me this error:
ASP.NET runtime error: Code blocks are not supported in this context.
Any ideas as to how to work around this error?
I'm trying to do something like this:
<asp:ListItem><div><%= Message.Success %></div></asp:ListItem>
but it gives me this error:
ASP.NET runtime error: Code blocks are not supported in this context.
Any ideas as to how to work around this error?
Copyright © 2021 Jogjafile Inc.
You need a Binding Expression inside Controls
<%# %>.However this does not work in a
ListItem. You will need to add that item with code if you want theMessage.Successto be displayed.