Hi,
I answering with almost zero ASP experience, like Flash84x :-)
It seems that in asp, when you set "Visibile=false", the panel is not created.
And if you would like to use custom JavaScript and not the .NET facility to display, hide a panel you should apply a style directly in the tag like this:
<asp:Panel id="pnlUpload" runat="server"
Style="visibility:hidden;background-color:#CC9999;
color:#FFFFFF; width:200; height:200;
border:solid 1; padding:10">
.....
And then it will rendere somthing like this in html
:
<div id="pnlUpload" class="text" style="visibility:hidden;
background-color:#CC9999; color:#FFFFFF; width:200;
height:200; border:solid 1; padding:10">
.....
</div>
And of course the corresponding javascript would be:
<script language="JavaScript">
document.getElementById('pnlUpload').style.visibility = 'visible';
</script>