Introduction:
Here I will explain how to upload images or files using jQuery without page refresh or postback in asp.net using handler (ashx) in c#, vb.net or jQuery upload files or images without postback in asp.net using Handler in c#, vb.net or asynchronous file upload using jQuery without submitting form in asp.net with c#, vb.net.
Description:
In previous articles I explained jQuery call asp.net page methods from json, 7 + jQuery multiple fileupload plugin examples, jQuery check file size before upload in asp.net, jQuery setInterval() function example, jQuery upload multiple files using uplodify plugin in asp.net and many articles relating to jQuery, JavaScript and asp.net. Now I will explain how to upload images or files using jQuery without page refresh or postback in asp.net using handler (ashx) in c#, vb.net.
In previous articles I explained jQuery call asp.net page methods from json, 7 + jQuery multiple fileupload plugin examples, jQuery check file size before upload in asp.net, jQuery setInterval() function example, jQuery upload multiple files using uplodify plugin in asp.net and many articles relating to jQuery, JavaScript and asp.net. Now I will explain how to upload images or files using jQuery without page refresh or postback in asp.net using handler (ashx) in c#, vb.net.
To upload images or files using jQuery without page refresh or postback in asp.net using handler (ashx) first create the new web application and open Default.aspx page and write the following code