Category - C#.Net
Results 1 - 20 of 162
14 Jun 2022 14 Jun 2022 0 Comments  5444 Views
Here Mudassar Khan has explained with an example, how to convert LINQ query result to DataTable using C# and VB.Net.
01 Jun 2022 01 Jun 2022 2 Comments  12385 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Username and password not accepted." in ASP.Net Application when trying to access Gmail Mailbox using POP3.
01 Jun 2022 01 Jun 2022 0 Comments  1919 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Application-specific password required" in ASP.Net Application when trying to access Gmail Mailbox using POP3.
22 Mar 2022 22 Mar 2022 0 Comments  5291 Views
Here Mudassar Khan has explained with an example, how to update data (record) in Table using Entity Framework in C#.
22 Mar 2022 22 Mar 2022 0 Comments  5618 Views
Here Mudassar Khan has explained with an example, how to insert data (record) in Table using Entity Framework in C#.
08 Feb 2021 08 Feb 2021 1 Comments  48137 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  36373 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.
05 Feb 2021 05 Feb 2021 1 Comments  16780 Views
Here Mudassar Ahmed Khan has explained with an example, how to use TLS1.2 in projects using .Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 with C# and VB.Net.

But, the support for TLS 1.2 is available in .Net 4.5 onwards and hence this article will demonstrate how to use it in projects other Frameworks such as Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 without upgrading them.
02 Feb 2021 02 Feb 2021 0 Comments  47970 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Newtonsoft.Json.JsonConvert library for Serializing and Deserializing JSON using C# and VB.Net.

The JSON string will be first downloaded from an API using WebClient class and then will be deserialized to JSON object using the Deserialize function of the JSON.Net library.

Finally, the JSON object will be again serialized to JSON string using the Serialize function of the JSON.Net library in ASP.Net using C# and VB.Net.
28 Nov 2020 28 Nov 2020 0 Comments  31630 Views
Here Mudassar Ahmed Khan has explained with an example, how to save (upload) Image files to Server using Web API in ASP.Net MVC Razor.

The Image files will be uploaded to Web API and then inside the Web API, the Image files will be saved in Folder (Directory) on the Server’s Disk in ASP.Net MVC Razor.
23 Nov 2020 23 Nov 2020 0 Comments  13532 Views
Here Mudassar Ahmed Khan has explained with an example, how to create Connection String in C# and VB.Net.

This article will illustrate how to create connection string for Windows and SQL Server based authentication for Windows Forms and Console Applications in C# and VB.Net.
20 Nov 2020 20 Nov 2020 0 Comments  15725 Views
Here Mudassar Ahmed Khan has explained with an example, how to call Web API from another Project in ASP.Net MVC Razor.

The Web API 2 Controller’s Action method will fetch records from the SQL Server Database using Entity Framework in ASP.Net MVC Razor.

The Web API 2 Controller’s Action method will be called using WebClient class from another MVC Project using the Web API URL.
19 Nov 2020 19 Nov 2020 0 Comments  25232 Views
Here Mudassar Ahmed Khan has explained with an example, how to create Web API in ASP.Net C# with SQL server database in ASP.Net MVC Razor.

The Web API Controller method will fetch records from SQL server database using Entity Framework in ASP.Net MVC Razor.
19 Nov 2020 19 Nov 2020 0 Comments  4732 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.
12 Nov 2020 13 Nov 2020 0 Comments  15313 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement reverse FOR LOOP in C# and VB.Net.

A FOR LOOP iterates from START to END while the reverse FOR LOOP as the name suggests will do REVERSE i.e. from end to start.

This article will explain a simple reverse FOR LOOP by reversing a string in C# and VB.Net.
12 Nov 2020 12 Nov 2020 0 Comments  9724 Views
Here Mudassar Ahmed Khan has explained with an example, how to reverse a String using C# and VB.Net.

This article will illustrate how to create a simple STATIC function which can be used in ASP.Net Web Forms, ASP.Net MVC, ASP.Net Core, Windows Applications and also Console Applications built in C# or VB.Net.
18 Sep 2020 18 Sep 2020 0 Comments  15967 Views
Here Mudassar Ahmed Khan has explained with an example, how to select all Nodes (Elements) in XML without specifying (particular) Node Name (Tag Name) using XPath Query (Expression) with C# and VB.Net.

The XML file will be loaded into an XmlDocument and then using XPath Query (Expression), all the Nodes (Elements) in the XML will be selected.
18 Apr 2020 18 Apr 2020 0 Comments  13268 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate jQuery DataTable using Entity Framework using C# in ASP.Net MVC Razor.

The data from the SQL Server Database will be populated using Entity Framework in C#.

An HTML Table will be applied the jQuery DataTables plugin and then using a jQuery AJAX call the data will be fetched from the Controller and will be assigned to the jQuery DataTables plugin in ASP.Net MVC Razor.
19 Mar 2020 19 Mar 2020 0 Comments  28699 Views
Here Mudassar Ahmed Khan has explained with an example, how to add new Row to existing DataTable using C# and VB.Net.
09 May 2019 09 May 2019 1 Comments  33005 Views
Here Mudassar Ahmed Khan has explained with an example, how to create HTML File in Console (Command) Application using C# and VB.Net.

First, an HTML Table will be generated in the form of an HTML string and then the HTML string will be written to an HTML File and saved in Folder (Directory) using C# and VB.Net.
Results 1 - 20 of 162