我刚才试过了,一切正常,没有你出现的问题,你看看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>WebForm2</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function a()
{
window.document.all("fileid").click();
}
</script>
</head>
<body MS_POSITIONING="GridLayout">
<form id="WebForm2" method="post" runat="server">
<INPUT style="Z-INDEX:  101;  LEFT:  194px;  POSITION:  absolute;  TOP:  217px" type="button" value="Button1" onclick="a()">&nbsp;
<INPUT id="fileid" style="Z-INDEX: 103; LEFT: 191px; POSITION: absolute; TOP: 174px" type="file">
</form>
</body>
</html>