views:

158

answers:

2

Well here is my problem: I have a table with an iframe in the first cell and then some rows below I have some textboxes and buttons. But as long as the iframe is on the page the buttons and textboxes do not show up.

What am I doing wrong?

<table>
<tr>
<td>
<Iframe/>
</td>
</tr>
<tr>
<td>
<input type="password">
</td>
</tr>
</table>

to demonstrate below is the same code and it hides the textbox

---Table---

---Table ends here---

+4  A: 

make sure that you are closing the iframe tag properly

<iframe src="xyz.aspx" id="ifr" name="ifr" ></iframe>

closing tag-> "</iframe>"

James_Smith
but shouldent <iframe src... /> do it?
Petoj
+1  A: 

This is no ASP.NET bug! Not even an HTML bug.

James_Smith is right, the <iframe> element is not self-closing, and requires a separate closing tag.

Tor Haugen