Creating dynamic text for a literal control

Posted by strakastroukas on Stack Overflow See other posts from Stack Overflow or by strakastroukas
Published on 2010-05-26T17:10:04Z Indexed on 2010/05/26 17:21 UTC
Read the original article Hit count: 230

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about html