现在要做中英文两个版本的网站,可是FileUpload控件在中,英文版中都显示“浏览...”,请问怎么才能让FileUpload在英文版中显示"FileLoad..."?

解决方案 »

  1.   

    需要你重写控件的<HTML>
    <HEAD>
    </HEAD>
    <SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript">
    function HandleFileButtonClick()
     { document.frmUpload.myFile.click(); 
    document.frmUpload.txtFakeText.value = document.frmUpload.myFile.value; 

    </SCRIPT>
    <body>
    <form name="frmUpload">
    <input type="file" name="myFile" style="DISPLAY:none">
    <input type="text" name="txtFakeText" readonly>
    <input type="button" onclick="HandleFileButtonClick();" value="Browse" style="BACKGROUND:white">
    </form>
    </body>

    </HTML>Browse你要改的值!