Creating dynamic text for a literal control
- by strakastroukas
On the ListView1_ItemDataBound of a list view event, i create the literal.text like so...
<span style="position:relative">
<span id="term1" class="popup">This is the answer!</span>
<a href="javascript:void(0);"onMouseover="ShowPop('term1')" onMouseout="HidePop('term1')">Show me the answer</a></span>
The problem is that the text is not rendered as it should. On mousing over the literal control the url is
http://localhost:1391/"javascript:void(0);"onMouseover="ShowPop('term1');"
So what is going on here? What am i missing?