Ajax Uploadewr in MVC

Last post 05-05-2010, 9:17 PM by hassan. 2 replies.
Sort Posts: Previous Next
  •  05-05-2010, 8:25 PM 60759

    Ajax Uploadewr in MVC

    We are using the uploader in an MVC app. When we upload a file, the file gets posted to the temp directory but after executing the handler, it does not return to our action method so that we can do our processing. Any ideas?
     
    Many thanks
  •  05-05-2010, 8:55 PM 60760 in reply to 60759

    Re: Ajax Uploadewr in MVC

    Hi,
     
    You can use javascript API to catch the event.
     
     
    add this script into your page :
     
    <script>
    function CuteWebUI_AjaxUploader_OnPostback()
    {
        var uploader=this;
     
        //guid list splited by '/'
        alert(uploader.value);
     
        //todo: submit your page here.
     
        return false;
    }
    </script>
     
    Regards,
    Terry
     
  •  05-05-2010, 9:17 PM 60761 in reply to 60760

    Re: Ajax Uploadewr in MVC

    Many Thanks Terry. This worked.
View as RSS news feed in XML