22 Feb 2019 22 Feb 2019 0 Comments  13 Views
Here Mudassar Ahmed Khan has explained with an example, how to preview Image before upload using AngularJS.

When an Image File is selected in the HTML FileUpload element (Input Type File), the Image File data will be read using HTML5 FileReader API and displayed in Image element using AngularJS.
21 Feb 2019 21 Feb 2019 0 Comments  142 Views
Here Mudassar Ahmed Khan has explained with an example, how to show an element using ng-show directive when the Variable (Model) is not NULL and if the Variable (Model) is NULL or empty then the element must be hidden using AngularJS.

The AngularJS ng-show directive will be assigned a condition where the Variable (Model) will be tested for NULL and if the Variable (Model) is not NULL, the condition will return True, thus the element will be shown else vice-versa.
21 Feb 2019 21 Feb 2019 0 Comments  129 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ng-change directive with FileUpload element (Input Type File) in AngularJS.

There is no binding support for FileUpload element (Input Type File) in AngularJS and hence ng-change directive cannot be used.

This article will illustrate how to use JavaScript OnChange event handler to call a function inside AngularJS Controller.
20 Feb 2019 20 Feb 2019 0 Comments  147 Views
Here Mudassar Ahmed Khan has explained with an example, how to use AngularJS ngFileUpload module with Web API in ASP.Net MVC Razor.

This article will illustrate how to upload multiple files with the standard FileUpload element using HTML5 and ngFileUpload AngularJS module in ASP.Net MVC Razor.
20 Feb 2019 20 Feb 2019 0 Comments  146 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload files using AngularJS and Web API in ASP.Net MVC Razor.

This article will illustrate how to upload multiple files with the standard FileUpload element using HTML5, AngularJS and Web API in ASP.Net MVC Razor.
19 Feb 2019 19 Feb 2019 0 Comments  118 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to use ng-src inside ng-repeat directive in AngularJS.

The ng-src directive is used along with Image elements in order to display Images from Model in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by assign the URL of the Image to the ng-src directive in AngularJS.
19 Feb 2019 19 Feb 2019 0 Comments  170 Views
HTML  JSON  Table  AngularJS  Arrays  Image
Here Mudassar Ahmed Khan has explained with an example, how to display Images from JSON Array using ng-repeat in AngularJS.

This article will illustrate how to display Images using the ng-src directive with Image elements in AngularJS.

The Image will be stored in a Folder (Directory) on the Server and will be displayed by assign the URL of the Image to the ng-src directive in AngularJS.
13 Feb 2019 14 Feb 2019 0 Comments  350 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML to PDF in Windows Forms Application using iTextSharp, C# and VB.Net.

First a DataGridView will be populated with some data and then an HTML Table will be generated using the values from the DataGridView.

Finally, the HTML Table will be exported and saved as PDF file using iTextSharp and XMLWorkerHelper class in Windows Forms Application with C# and VB.Net.
13 Feb 2019 13 Feb 2019 0 Comments  288 Views
Here Mudassar Ahmed Khan has explained with an example, how to get RowIndex when CheckBox in GridView Row is Checked (Clicked) using JavaScript.

All the CheckBox inside the GridView will be assigned a Click event handler using JavaScript.

When the CheckBox inside the GridView Row is Checked (Clicked), the GridView Row will be referenced and then the RowIndex and the Row (Cell) values will be extracted and displayed using JavaScript Alert Message Box.
12 Feb 2019 18 Feb 2019 0 Comments  317 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView data to Word document in ASP.Net using C# and VB.Net.

This article will illustrate how to export all Pages of GridView with Paging Enabled to Word document along with formatting i.e. Styles and Colors in ASP.Net.

When the Export Button is clicked, the GridView will be rendered as an HTML string which will be later written to Response Stream and ultimately downloaded as Word document in ASP.Net.
11 Feb 2019 18 Feb 2019 0 Comments  339 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML Table to Excel file using jQuery in ASP.Net MVC Razor.

The HTML Table will be exported (converted) to Excel file using the jQuery table2excel plugin in ASP.Net MVC Razor.
11 Feb 2019 18 Feb 2019 0 Comments  280 Views
Here Mudassar Ahmed Khan has explained with an example, how to export WebGrid to Excel file using jQuery in ASP.Net MVC Razor.

The WebGrid’s HTML Table will be exported (converted) to Excel file using the jQuery table2excel plugin in ASP.Net MVC Razor.
08 Feb 2019 18 Feb 2019 0 Comments  483 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView to PDF without using iTextSharp in ASP.Net.

This article will illustrate how to export GridView to PDF using jQuery in ASP.Net.

The GridView’s HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF file using the pdfmake plugin in jQuery.
08 Feb 2019 18 Feb 2019 0 Comments  387 Views
Here Mudassar Ahmed Khan has explained with an example, how to export (convert) GridView to Excel file using JavaScript and jQuery in ASP.Net.

The GridView’s HTML Table will be exported (converted) to Excel file using the jQuery table2excel plugin in ASP.Net.
08 Feb 2019 18 Feb 2019 0 Comments  330 Views
Here Mudassar Ahmed Khan has explained with an example, how to export (convert) GridView to PDF file using JavaScript and jQuery in ASP.Net.

The GridView’s HTML Table will be first converted into a HTML5 Canvas using html2canvas plugin and then the HTML5 Canvas will be exported to PDF file using the pdfmake plugin in jQuery.
07 Feb 2019 18 Feb 2019 0 Comments  292 Views
Here Mudassar Ahmed Khan has explained with an example, how to allow only AlphaNumeric (Letters or Numbers), Underscore in Username and it must have length of 3 to 10 characters using JavaScript.

When the Submit Button is clicked, the Username in the TextBox will be validated using JavaScript and Regular Expression (Regex) and if the Username is invalid, the error message will be displayed next to the TextBox using JavaScript.
05 Feb 2019 05 Feb 2019 0 Comments  426 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Search function in Windows Forms Application using C# and VB.Net.

By default the DataGridView will show all records. As soon as user starts to type in the TextBox, the records will be searched in Database and the DataGridView rows will be filtered in Windows Forms (WinForms) Application using C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  398 Views
Here Mudassar Ahmed Khan has explained with an example, how to Search all (multiple) Columns of DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.

By default the DataGridView will show all records. As soon as user starts to type in the TextBox, the records will be searched in all (multiple) Columns displayed in the DataGridView and the DataGridView rows will be filtered in Windows Forms (WinForms) Application using C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  422 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch (retrieve) data from Database using DataTable with C# and VB.Net.

This article will illustrate how to populate DataGridView with data from SQL Server Database using SqlDataAdapter and DataTable in Windows Forms (WinForms) Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  364 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch (retrieve) data from Database using DataReader with C# and VB.Net.

This article will illustrate how to populate DataGridView with data from SQL Server Database using SqlDataReader and DataTable in Windows Forms (WinForms) Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  311 Views
Here Mudassar Ahmed Khan has explained with an example, how to retrieve data from Database in Windows Forms Application using C# and VB.Net.

This article will illustrate how to retrieve data from SQL Server Database using DataTable and SqlDataAdapter in Windows Forms (WinForms) Application with C# and VB.Net.
05 Feb 2019 05 Feb 2019 0 Comments  354 Views
Here Mudassar Ahmed Khan has explained with an example, how to fetch data from Database and store into DataTable using C# and VB.Net.

This article will illustrate how to populate DataTable with data from SQL Server Database using SqlDataAdapter in Windows Forms (WinForms) Application with C# and VB.Net.
04 Feb 2019 04 Feb 2019 0 Comments  346 Views
Here Mudassar Ahmed Khan has explained with an example, how to retrieve data from Database and display in TextBox in Windows Application (WinForms) using C# and VB.Net.

This article will illustrate how to fetch records (data) from SQL Server Database using SqlDataReader and then set the retrieved values in Windows Application (WinForms) using C# and VB.Net.
04 Feb 2019 04 Feb 2019 0 Comments  355 Views
Here Mudassar Ahmed Khan has explained with an example, how to retrieve data from Database and set the value in TextBox in ASP.Net using C# and VB.Net.

This article will illustrate how to fetch records (data) from SQL Server Database using SqlDataReader and then set the retrieved values in TextBoxes in ASP.Net using C# and VB.Net.
01 Feb 2019 01 Feb 2019 0 Comments  506 Views
Here Mudassar Ahmed Khan has explained with an example, how to restrict user from entering Special Characters in TextBox using AngularJS.

This article will illustrate how to perform AlphaNumeric validation for TextBox i.e. allow only Alphabets and Numbers in TextBox using AngularJS.

The AlphaNumeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.