File Upload along with form data using jQuery AJAX in ASP.NET web method RRS feed

  • Question

  • User-976781698 posted


    I need to upload the file to asp.net web services (web method) along with the form data.

    HTML Code:

    <input id="txtUserName" type="text" />
    <input id="txtCity" type="text" />
    <input id="txtEmail" type="text" />
     <input type="file" id="imgFile">

    I need to pass username, city, email and file to my webmethod. how to accomplish in Jquery AJAX call.
    Friday, December 2, 2016 4:45 PM


All replies