try like this
put the above script in one function like this and call that function
<script type="text/javascript" >
function fnframe()
{
var wer = document.getElementById('<%=hdhiddenfield.ClientID %>').value;
qwerty.document.body.innerHTML = qwe;
}
</script>
try this
<body onload="enablecontrols()">