Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax AsyncFileUpload Using a different control to trigger the browse button click

$
0
0

Hello,

I'm trying to create a custom control. (with Ajax and some jquery js)

The control has a custom styled button that is visible and a AsyncFileUpload control that is not (transparent).

When the user clicks the styled button, it triggers the browse button on the AsyncFileUpload control.

Does anyone know what the AsyncFileUpload trigger is called?

So the styled button { onclick="browse()"}  and the function is 

        function browse() {            $('#imageUploadBrowse').trigger('click');        }
But the trigger of the <input type="file" is click, what is the tigger for the AsyncFileUpload?
<div><ajaxToolkit:AsyncFileUpload ID="imageUploadBrowse" runat="server" CssClass="InputFileUpload FileUploadPosition"/><%--<input name="imageUpload" type="file" id="imageUploadBrowse" style="position:absolute; top:-100px;"/>--%><input type="button" value="browse files" onclick="browse()"/></div>    



                       

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>