On the ListView1_ItemDataBound of a list view event, i create the literal.text like so...
<span style="position:relative;">
style="position:relative">
<span id="term1" class="popup">This id="term1" class="popup">This is the answer!</span>
<a href="javascript:void(0);"onMouseover="ShowPop('term1');" onMouseout="HidePop('term1');">Show 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?
UPDATE1: Here is the source from the browser
<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>
UPDATE2: And here is the output from the screen
This is the answer Show me the answer
where...
Show me the answer is the hyperlink to http://localhost:1391/"javascript:void(0);"