Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to upload file using AsyncFileUpload within the usercontrol.

I have tried with sample, it is working out side from my project. but with in the project none the method is firing , even javascript function "OnClientUploadStarted" dosnt fire.

I write function for it and call as
C#
OnClientUploadStarted="myStartFunction"


then insert the alert ,even it dosent work.


i used
HTML
<form  enctype="multipart/form-data" method="POST"></form>


also

none of gona work.

your help is kindly appreciate
Posted
Updated 15-Aug-14 4:36am
v4

1 solution

The only call here is that you need to check your JavaScript code. It seems like you're preventing the form to be submitting, it might be because of

JavaScript
return false;


inside the block where you're capturing the form submit event, or you're trying to prevent it like this

JavaScript
event.preventDefault();


.. the last bid would be that you're capturing the event by ClientSide function and there is some error in your code which is causing nothing to happen at all. I would advise you to open the Console, using F12 and then checking what happens when you press the button. It will surely tell you if there is any kind of error in the form submission process.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900