Drive! aunque no lo puedas creer.. no funciona..
Copio el codigo que imprime cuando abro el iframe:
Código HTML :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="../js/abm/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="../js/abm/thickbox-compressed.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/Utils.js"></script>
<script type="text/javascript">
function setFocus()
{
var miiframe = document.getElementById("TB_iframeContent");
miiframe.contentDocument.forms['form1'].txtCod.focus();
}
</script>
</head>
<body id="ctl00_body" onload="setFocus()">
<form id="aspnetForm" onsubmit="javascript:return WebForm_OnSubmit();" action="Test1.aspx"
method="post" name="aspnetForm">
....
<!--Este es el boton que abre el iframe con un efecto popup: uso para esto el thickbox.js -->
<div class="btn_nuevo">
<a id="ct_PopUpNuevo" class="thickbox" href="PopUpTest1.aspx?TB_iframe=true&height=150&width=400">
<input id="Button1" class="Button" type="button" value="Nuevo">
</a>
</div>
....
</form>
<div id="TB_overlay" class="TB_overlayBG">
</div>
<div id="TB_window" style="margin-left: -215px; width: 430px; margin-top: -95px;
display: block;">
<div id="TB_title">
</div>
<iframe id="TB_iframeContent" frameborder="0" style="width: 429px; height: 162px;"
onload="tb_showIframe()" name="testFrame" src="http://localhost:50430/PopUpTest1.aspx?"
hspace="0">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body onclass="bodyPanel">
<form id="form1" onsubmit="javascript:return WebForm_OnSubmit();" action="PopUpTest1.aspx"
method="post" name="form1">
</form>
</body>
</html>
</iframe>
</div>
</body>
</html>
Estoy haciendo algo mal??
Gracias!!!