Using C# in .NET 2.0 (Visual Studio 2005). I have a radio button list of cell phone models. Within this list I have hyperlinks to images of the phones and of the ESNs (serial numbers) of the phones to help the users identify which phone they have. My ListItem code looks like this:
<asp:ListItem Value="Sprint Kyocera">Sprint Kyocera <a href="images/Sprint_Kyocera.jpg" target="_blank">(image of phone)</a> <a href="images/Sprint_Kyocera_ESN.jpg" target="_blank"> (image of ESN)</a></asp:ListItem>
When i build my project I get a validation error saying "Error 1 Validation (Internet Explorer 6): The element 'a' cannot be nested within the element 'listitem'."
The page still loads and works just fine but I have to rebuild that section of code every time I go back into the designer because of this error.
I need to have the hyperlinks next to the text for each phone model name. How can I do this properly?
Get live TV over the internet
Say goodbye to cable -- check out the top five live TV streaming services available now.