none
(Sumber: milist DOTNET) kirim parameter dari fileupload control ke jquery RRS feed

  • Pertanyaan

  • dear all,

     

    saya punya jquery spt dibawah ini

     

        <script type="text/javascript">
            $(document).ready(function () {
                $("[id$=btnUpload]").click(function () {
                    var fu = $("[id$=Fileupload1]");
                    $.ajax({               
                        type: "POST",
                        url: "Handler1.ashx?FileName=" + fu.val(),                   
                        contentType: 'multipart/form-data',
                        success: function (data) {
                            $("#info").html(data);
                        }
                    });
                });
            });
        </script> 

     

     

    mksdnya sih, bgmn caranya spy si ajax ini nerima file yg diupload kemudian dijadikan parameter

    yg dikirim ke ashx (httphandler) tapi sptnya ga ke capture file yg ada di control fileupload.

     

    tolong koreksi ya guys, thks in advanced


    Agnes Sannie [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Kamis, 24 November 2011 09.38
    Moderator

Jawaban

Semua Balasan