c# - How to upload image in database using jqgrid with asp.net -


i using jqgrid asp.net 4.0 web form application , want upload image sqlserver database. please suggest right way example. in advance.

     colmodel: [             { name: 'imagetoupload', index: 'imageid', align: 'left', editable: true, edittype: 'file', editoptions: { enctype: "multipart/form-data" }, search: false },                                           }                                 ],                                   beforesubmit: function (postdata, formid) {                                     var complete = false;                                     var message = "";                                     var namefile = "";                                     alert("hi");                                     $.ajaxfileupload({                                         url: '<%=page.resolveurl("~/master/policymaster.ashx") %>',                                         secureuri: false,                                         fileelementid: 'imagetoupload',                                         datatype: 'json',                                         success: function (data, status) {                                         }                                     });                                    return [true, message];                                 }, 


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -