Hiding an element in a Transformation

Sherry Collins asked on June 18, 2015 03:28

Are you able to hide an element in a transformation.

For example

 <span class="a" data-blogid="<%#Eval("DocumentID")%><%#Eval("DocumentID")%></span>

 I want the last "DocumentID " to be on the page but not visible.  Is that possible?

 Thanks.

Correct Answer

Brenden Kehren answered on June 18, 2015 03:50

Looks like your HTML is incorrect. Try this and add the style="display:none;" to the tag:

<span style="display: none;" class="a" data-blogid='<%#Eval("DocumentID")%>'><%#Eval("DocumentID")%></span>
1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.