I want to insert an imege to a MVC Project, i used following code to do that, but i want to pass that image using jquery instead of pass data using Html.BeginForm. how can i do it,
<% using (Html.BeginForm("uploadImage", "ItemMaster", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
%>
<p><input type="file" id="fileUpload" name="fileUpload" size="23"/> </p>
<p><input type="submit" value="Upload file" /></p>
<%= Html.Hidden("hdnItemCode", null, new { style = "width:100px" })%>
<%
}
%>