我有一页的配置,以掩盖文件上载控制,因此,当你点击一个纽子时,就会发现文件上载窗口,并在你选择文件后,自动提交服务器。
Ir order for this to work i created 2 linkbuttons and a file upload but only one of the buttons is visible. When you click the button it triggers the fileupload window and when the FileUpload control has a change it triggers the submit (invisible) button. The proble I m having is that only the OnClientClick is being triggered and the server side code is not running
<script type="text/javascript">
document.getElementById( <%= button.ClientID %> ).onclick = function () {
document.getElementById( <%= fileupload.ClientID %> ).click();
return false;
}
document.getElementById( <%= fileupload.ClientID %> ).onchange = function () {
document.getElementById( <%= save.ClientID %> ).click();
}
</script>
托顿有星座显示模式窗口,应送至服务器
OnClick="lnkChange_OnClick" OnClientClick="ShowModalDialog(0);"
如何确定这一点?