Click here to Skip to main content
15,748,930 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose I want to render text in a frame separated from a grid in another frame. When the cursor passes over a cell the text must be rendered and when I move out the text must disappear. I get the data but strangely if there's a space between two words, the text will not appear, although the data are there. I retrieve the data in a repeater and I manipulate them with Repeater_ItemDataBound. Code:
VB.NET
Sub Repeater_ItemDataBound(ByVal s As Object, ByVal e As RepeaterItemEventArgs)

//here I retrieve the data
Dim reader As SqlDataReader = cm.ExecuteReader()

While reader.Read()
    'Response.Write(reader("DSOmschrijving"))
    If reader("DSOmschrijving") <> "" Then
        var1 = 1
        var2 = reader("DSOmschrijving").ToString
    End If
End While
'Test to render them
'response.write(var2) ---> and indeed the text is rendered on the screen(principal frame).

'Here the text must be in frame2
If var1 = 1 Then
    LabDSCode.Text = "<td bgcolor='#999999'>" & "<a href='details.aspx?ds=" & dataLLDCode & _
"&didsug=" & var2 & "' onMouseOver=parent.frames[1].document.open();parent.frames[1].document.write('" & var2 & _
"');parent.frames[1].document.close();>".ToString & "&nbsp&nbsp&nbsp&nbsp&nbsp" & "</a>"
Else

End If
cn.Close()
reader.Close()
If I delete all the spaces (&nbsp) it works , but otherwise not. Is there someone who knows a solution? Thanks a lot
Posted
Updated 19-Dec-09 8:16am
v4

1 solution

You have asked this three times now.  You've been answered before.  The non rude thing to do would be to edit your post if you have any new info ( but it looks the same to me ) to save us all the bother of giving you the same answers, which you apparently cannot understand, over and over.  If you have anything to add, edit your original post and it will be bumped.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900