Simply Notes #2: Single Click File Upload in ASP.Net
For those who hate to click more than required and like Scott Hanselman said
"There are a finite number of keystrokes left in your hands before you die."
I definitely have very little left to spare and I am still writing this! - Check yours
Here is one way of doing file upload in single click
"There are a finite number of keystrokes left in your hands before you die."
I definitely have very little left to spare and I am still writing this! - Check yours
Here is one way of doing file upload in single click
- Keep fileupload control hidden using css styles
- On client click of the upload link button trigger the fileupload click event and return false so that server side click event is not fired
- Now bind an onchange event for the fileupload control
- Onchange event trigger the server side click event of upload link button
- On upload link server click save the file on server
Comments
Post a Comment