I'm drawing some checkboxes in a loop and i want to set the text attribute based on the objects that I'm iteration with the loop.
I've something like this:
<asp:CheckBox ID="CheckBox1" runat="server" Text="<%= Html.Encode(item.nome) %>" Checked="true"/>
The problem is that the Html.Encode(item.nome) appears as plain text and if i dont use the quotation marks i get an error.