The control FileUploaddisplays <input type="file>in the browser. You can use javascript changeto start the download.
, load, body :
<body onload="body_onload()">
:
<script type="text/javascript">
function body_onload()
{
...
$get('<%=FileUpload.ClientID%>').onchange = function() {
$get('<%=this.Page.Form.ClientID%>').submit();
};
}
</script>
, jQuery, head ( jQuery):
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
( #fileUpload1 #form1 FileUpload Form):
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload1").change(function() {
$("#form1").submit();
});
});
</script>