Category - ASP.Net
Results 86 - 90 of 705
20 Jun 2014
1 Comments   5694 Views
Here Mudassar Ahmed Khan has explained how to upload multiple files with ASP.Net 4.5 FileUpload control in Visual Studio 2012 and Visual Studio 2013.

With the invention of HTML5, the FileUpload control now supports selection of multiple files at once and all the selected files are uploaded together. For uploading multiple files from a FileUpload control you just need to set the AllowMultiple property to true.

The only catch is that this feature is only available in browsers supporting HTML5 i.e. Internet Explorer (IE10) or higher, Firefox and Chrome.
20 Jun 2014
0 Comments   8701 Views
Here Mudassar Ahmed Khan has explained how to send or pass multiple parameters to Web Method in jQuery AJAX POST call in ASP.Net.

Generally people face issues with jQuery AJAX POST call to WebMethod when multiple parameters have to be passed, due to syntax errors the WebMethod does not get called.

Hence I have come up in an innovative way where using JSON object and JSON2 Stringify method one can easily post any number and any type of parameters to WebMethod using jQuery AJAX.
18 Jun 2014
3 Comments   6406 Views
Here Mudassar Ahmed Khan has explained how to read or extract text from image using Microsoft Office Document Imaging (MODI) in ASP.Net with C# and VB.Net.

This process of reading or extracting text from images is also termed as Optical Character Recognition (OCR).

In order to illustrate the process, I am creating an example where I’ll upload an Image containing some text and then the text will be read from the Image using OCR process and finally the extracted text will be displayed in ASP.Net Label control.
15 Jun 2014
1 Comments   5223 Views
Here Mudassar Ahmed Khan has explained how to delete row from GridView and database using jQuery in ASP.Net, C# and VB.Net.

When the delete button is clicked, a JavaScript confirmation box will be displayed and once confirmed a jQuery AJAX call will be made to the WebMethod which will then execute a DELETE query on the database table.

Once the record is deleted successfully from database, the corresponding row will be removed from GridView using jQuery.
14 Jun 2014
0 Comments   4623 Views
Here Mudassar Ahmed Khan has explained how to catch, handle and display ASP.Net server side exceptions occurring inside the Web Service WebMethods during jQuery AJAX calls. The caught exception is in the form of a JSON serialized string, plain text or HTML. If it is a JSON string, then it is parsed and converted into a JSON object and the details of the exception are extracted.

The details of the exception are then displayed using jQuery UI Dialog modal popup.