troubleshooting Question

<asp:fileupload> Why can't I fire code by pressing the open button?

Avatar of sabev
sabev asked on
Web Languages and Standards
2 Comments2 Solutions1199 ViewsLast Modified:
I have an <:asp fileupload> control on a form.  It browses fine and everything but I want to upload the file when I hit the 'open' button on the fileDialog.

Instead, I have to choose the file, 'open it' and then have ANOTHER control that 'Submit's the file.  An extra step.

Similar to <input type=file onChange="loadTheFile">  only <asp:fileupload> control does not have an onChange event.

Instead, I have to do this, an extra step

       <asp:Button id="Load"
           Text="Open It"
        OnClick="loadTheFile"
           runat="server" style="left: -182px; position: relative; top: -294px">
       </asp:Button>


Thanks
Doug
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros