Category - .Net
14 Jun 2022 14 Jun 2022 0 Comments  5408 Views
Here Mudassar Khan has explained with an example, how to convert LINQ query result to DataTable using C# and VB.Net.
14 Jan 2022 14 Jan 2022 0 Comments  4333 Views
ASP.Net  XML  HTML  Table  MVC  Grid  Core  .Net
Here Mudassar Khan has explained with an example, how to display XML file data in .Net Core.

This article will make use of ASP.Net MVC Core for illustrating how to read XML file data and then display it in Grid (HTML Table) format in .Net Core.
13 Dec 2021 13 Dec 2021 0 Comments  6901 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Configuration class using Dependency Injection in ASP.Net Core.

Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0 onwards and this article will illustrate how to use Dependency Injection for injecting IConfiguration interface in ASP.Net Core.
13 Dec 2021 13 Dec 2021 0 Comments  15356 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the IConfiguration in ASP.Net Core.

Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0 onwards and this article will illustrate how to use IConfiguration interface in ASP.Net Core.
26 Jul 2021 26 Jul 2021 0 Comments  11912 Views
ASP.Net  MVC  Core  .Net  REST API
Here Mudassar Ahmed Khan has explained with an example, how to perform JSON Deserialization in ASP.Net Core.

The JSON will be deserialized using NewtonSoft.Json library in ASP.Net Core.
26 Jul 2021 26 Jul 2021 0 Comments  14402 Views
ASP.Net  MVC  Core  .Net  REST API
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Third Party REST API in ASP.Net Core MVC.

The Third Party REST API will be called using HttpClient class in ASP.Net Core MVC.
26 Jul 2021 26 Jul 2021 0 Comments  11973 Views
ASP.Net  MVC  Core  .Net  REST API
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) an external REST API in ASP.Net Core MVC.

The external REST API will be called using WebClient class in ASP.Net Core MVC.
26 Jul 2021 26 Jul 2021 0 Comments  5702 Views
ASP.Net  JSON  MVC  Core  .Net  REST API
Here Mudassar Ahmed Khan has explained with an example, how to use HttpClient in ASP.Net Core MVC.

This article will illustrate how to call a JSON REST API using HttpClient and also how to deserialize JSON data to object in ASP.Net Core MVC.
08 Feb 2021 08 Feb 2021 1 Comments  48092 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class along with SSL3 Security Protocol in C# and VB.Net.

Error: The client and server cannot communicate, because they do not possess a common algorithm

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service and hence there is mismatch in the cryptographic algorithm.
08 Feb 2021 08 Feb 2021 0 Comments  36349 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class in C# and VB.Net.
Error: Could not create SSL/TLS secure channel

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service which uses TLS 1.2 protocol for establishing secure channel for communication.
19 Nov 2020 19 Nov 2020 0 Comments  4731 Views
Here Mudassar Ahmed Khan has explained with an example, how to reverse a String without using in-built String function in C# and VB.Net.

This article will illustrate how to reverse a String using a simple FOR LOOP in C# and VB.Net.
13 Oct 2020 13 Oct 2020 0 Comments  24931 Views
ASP.Net  MVC  Email  Gmail  Core  .Net
Here Mudassar Ahmed Khan has explained with an example, how to send emails using GMAIL in ASP.Net Core.

This article will illustrate how to send emails with attachment using GMAIL SMTP Mail Server in ASP.Net Core.
13 Oct 2020 13 Oct 2020 0 Comments  14332 Views
ASP.Net  MVC  Email  Gmail  Core  .Net
Here Mudassar Ahmed Khan has explained with an example, how to send emails in .Net Core.

This article will illustrate how to send emails with attachment using SMTP Mail Server in .Net Core.

This article will make use of GMAIL SMTP Server and SMTP Client class for sending emails in .Net Core.
18 Jun 2020 18 Jun 2020 0 Comments  40708 Views
Here Mudassar Ahmed Khan has explained with an example, how to import (insert) Excel file data into Database using SqlBulkCopy in ASP.Net Core MVC.

The uploaded Excel file data will be read using OLEDB library and the read data will be inserted into SQL Server database using SqlBulkCopy.

SqlBulkCopy class as the name suggests does bulk insert from one source to another and hence all rows from the Excel sheet can be easily read and inserted using the SqlBulkCopy class.
09 Mar 2020 09 Mar 2020 0 Comments  35290 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ConfigurationManager.AppSettings in .Net Core and ASP.Net MVC Core.

Microsoft has replaced ConfigurationManager.AppSettings class of System.Configuration namespace with IConfiguration interface in .Net Core 2.0.
09 Mar 2020 09 Mar 2020 0 Comments  12805 Views
Here Mudassar Ahmed Khan has explained with an example, how to read AppSettings from AppSettings.json file in .Net Core and ASP.Net MVC Core.

Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0.
09 Mar 2020 09 Mar 2020 1 Comments  24477 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ConfigurationManager.ConnectionStrings in .Net Core and ASP.Net MVC Core.

Microsoft has replaced ConfigurationManager.ConnectionStrings class of System.Configuration namespace with IConfiguration interface in .Net Core 2.0.
09 Mar 2020 09 Mar 2020 0 Comments  108041 Views
Here Mudassar Ahmed Khan has explained with an example, how to read Connection String from AppSettings.json file in .Net Core and ASP.Net MVC Core.

Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0.