New Additions
08 Mar 2021 08 Mar 2021 0 Comments  46 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement RadioButtons (RadioButtonList) in ASP.Net Core MVC.

The records from the Database will be fetched from Database Table using ADO.Net into SelectListItem class as Model and a Custom RadioButtonList has been populated in ASP.Net Core MVC.

The RadioButtons are grouped by specifying common name for all RadioButtons in ASP.Net Core MVC.
05 Mar 2021 05 Mar 2021 0 Comments  208 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement RadioButtons (RadioButtonList) in ASP.Net Core Razor Pages.

Group of multiple RadioButtons (RqadioButtonList) will be populated from SQL Server Database by looping through the Model.

The RadioButtons are grouped by specifying common name for all RadioButtons in ASP.Net Core Razor Pages.
04 Jun 2014 27 Feb 2021 11 Comments  283593 Views
Here Mudassar Ahmed Khan has explained with an example, how to capture still image / photo / picture from Web Camera (Webcam) in ASP.Net using C# and VB.Net.

In order to capture images from Web Camera (Webcam), jQuery Webcam.js plugin will be used.

The images captured using Web Camera (Webcam) will be saved in Folder (Directory) and displayed in HTML Image control in ASP.Net.
04 Apr 2017 27 Feb 2021 2 Comments  27557 Views
Here Mudassar Ahmed Khan has explained with an example, how to capture still image / photo / picture from Web Camera (Webcam) in ASP.Net MVC 5 Razor.

jQuery Webcam plugin is used to capture images (photos) from Web Camera (Webcam).

The images (photos) captured using Web Camera (Webcam) will be saved in folder and displayed in View in ASP.Net MVC 5 Razor.
19 Feb 2021 19 Feb 2021 0 Comments  743 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) DropDownList using SelectListItem in ASP.Net MVC Razor.

The records from the database will be populated into a Generic List collection of SelectListItem class objects and then will be saved into a ViewBag object.

Inside the View, the ViewBag object will be passed to the Html.DropDownList Helper function for populating the DropDownList in ASP.Net MVC Razor.
19 Feb 2021 19 Feb 2021 0 Comments  461 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) SelectListItem to DropDownList in ASP.Net MVC Razor.

The SelectListItem collection is used to pass (send) data from Database to DropDownList in ASP.Net MVC Razor.
19 Feb 2021 19 Feb 2021 0 Comments  548 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert DropDownList selected value in SQL Server Database in ASP.Net Core MVC.

The selected value of the DropDownList will be inserted into SQL Server Database using Entity Framework in ASP.Net Core MVC.
19 Feb 2021 19 Feb 2021 0 Comments  484 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX helpers in ASP.Net Core.

The POST method of the Razor Page will be called using jQuery Unobtrusive AJAX library in ASP.Net Core.
19 Feb 2021 19 Feb 2021 0 Comments  487 Views
ASP.Net  jQuery  MVC  Form  FormData  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit Form using jQuery in ASP.Net Core MVC.

This article will explain how to create Form Fields and then submit data from View to Controller using Form Collection and jQuery AJAX in ASP.Net Core MVC
19 Feb 2021 19 Feb 2021 0 Comments  459 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement and use AJAX in ASP.Net Core 2.1 Razor Pages.

This article will illustrate how to use jQuery for performing AJAX operations in ASP.Net Core 2.1 Razor Pages.
16 Feb 2021 16 Feb 2021 0 Comments  636 Views
Here Mudassar Ahmed Khan has explained an example, how to use the Select List asp-items Tag Helper in ASP.Net Core Razor Pages.

The the Select List asp-items Tag Helper is used for populating DropDownList in ASP.Net Core Razor Pages.
16 Feb 2021 16 Feb 2021 0 Comments  483 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate Select List from Database in ASP.Net Core Razor Pages.

The records from the Database will be populated into Model class objects and then the Model will be used to populate the DropDownList using the new ASP.Net Tag Helpers in ASP.Net Core Razor Pages.
11 Feb 2021 11 Feb 2021 0 Comments  614 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use Response.Write in ASP.Net Core MVC.

Response.Write function is not available in ASP.Net Core and hence this article will illustrate how to do similar functionality in ASP.Net Core MVC.
11 Feb 2021 11 Feb 2021 0 Comments  589 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use WebClient in ASP.Net Core MVC.

This article will illustrate how to call an API using the DownloadString method of the WebClient class in ASP.Net Core MVC.
08 Feb 2021 08 Feb 2021 0 Comments  622 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  874 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 0 Comments  734 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  1265 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.
29 Jan 2021 29 Jan 2021 0 Comments  833 Views
Here Mudassar Ahmed Khan has explained with an example, how to use AntiForgeryToken with jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The jQuery Unobtrusive AJAX library does not support adding headers to the request and hence it is not possible to send AntiForgeryToken.

Thus, the possible way is to make use of normal jQuery AJAX function and then send the AntiForgeryToken by adding it to the request headers.
29 Jan 2021 29 Jan 2021 0 Comments  895 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery Unobtrusive AJAX in ASP.Net Core Razor Pages.

The POST method of the Razor Page will be called using jQuery AJAX Unobtrusive library and JSON from HTML in ASP.Net Core.
22 Jan 2021 22 Jan 2021 1 Comments  1803 Views
Here Mudassar Ahmed Khan has explained with an example, how to capture still image / photo / picture from Web Camera (Webcam) without using Flash in ASP.Net with C# and VB.Net.

In order to capture images from Web Camera (Webcam), an HTML5 based jQuery Webcam.js plugin will be used.

The images captured using Web Camera (Webcam) will be saved in Folder (Directory) and displayed in HTML Image control in ASP.Net.
22 Jan 2021 22 Jan 2021 0 Comments  1364 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Hidden Fields with Razor Pages in ASP.Net Core.

This article will explain how to create Hidden Fields using Model class, set its value and then retrieve data from Razor Page inside POST Handler method in ASP.Net Core.
22 Jan 2021 22 Jan 2021 0 Comments  790 Views
Here Mudassar Ahmed Khan has explained with an example, how to capture still image / photo / picture from Web Camera (Webcam) without using Flash in ASP.Net MVC Razor.

jQuery Webcam plugin is used to capture images (photos) from Web Camera (Webcam) using HTML5.
The images (photos) captured using Web Camera (Webcam) will be saved in folder and displayed in View in ASP.Net MVC Razor.
19 Jan 2021 19 Jan 2021 0 Comments  1442 Views
Here Mudassar Ahmed Khan has provided a small tutorial on how to create a Sample Web Application program in ASP.Net Core.

This article makes use of Visual Studio for developing the ASP.Net Core Razor Pages Sample Web Application program.
18 Jan 2021 18 Jan 2021 0 Comments  909 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using TempData in ASP.Net MVC Razor.

TempData itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.