I'm trying to generate content on a tooltip dynamically from a database. The problem is, I need to add dynamic check boxes. I looked through the demos but didn't see anything like this. I get an error when I try to add the checkbox, but I put it in to show what I need to do. I couldn't get the button to add either. Do you have any ideas? Here's the vb. The aspx for the tooltip is just standard stuff.
callBack.Text = "<div style=""margin-left: 10px; margin-top: 10px;""><b>Call Backs</b><br /><table cellpadding=""5"">"callBack.Text &= "<tr><td>Customer:</td><td>Phone:</td><td>Call Back Date:</tr>"Dim check As CheckBoxWhile reader.Read() check = New CheckBox check.ID = reader(4) check.Text = "Called Back" If (reader(3).ToString <> "") Then callBack.Text &= "<tr><td style=""width: 170px"">" & reader(2) & " - " & reader(3) & "</td><td>" & reader(1) & "</td><td>" & reader(0) & "</td><td>" & callBack.Controls.Add(check) & "</tr>" Else callBack.Text &= "<tr><td style=""width: 170px"">" & reader(2) & "</td><td>" & reader(1) & "</td><td>" & reader(0) & "</tr>" End If 'if reader(3) End WhileDim btn As Button = New Buttonbtn.ID = "updateCall"btn.Text = "Update"callBack.Controls.Add(btn)AddHandler btn.Click, AddressOf buttonClickcallBack.Text &= "</table><br /></div>"callBack.Show()