Category - Core
Results 121 - 140 of 313
15 Dec 2021 15 Dec 2021 0 Comments  4900 Views
Here Mudassar Khan has explained with an example, how to implement Contact Us Form in ASP.Net Core MVC.

The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net Core MVC.
15 Dec 2021 15 Dec 2021 0 Comments  3362 Views
Here Mudassar Khan has explained with an example, how to implement TinyMCE RichTextBox (RichTextEditor) in ASP.Net Core MVC.

TinyMCE RichTextBox (RichTextEditor) is a JavaScript plugin and is applied to the HTML TextArea element.
13 Dec 2021 13 Dec 2021 0 Comments  7250 Views
Here Mudassar Ahmed Khan has explained with an example, how to read Email Settings from AppSettings.json in ASP.Net Core.

The SMTP Mail settings are stored in the Smtp section of the AppSettings.json file.

The SMTP Mail settings will be read using the IConfiguration interface from the AppSettings.json file in ASP.Net Core.
13 Dec 2021 13 Dec 2021 0 Comments  4125 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  9301 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.
13 Dec 2021 13 Dec 2021 0 Comments  3191 Views
ASP.Net  MVC  Email  Gmail  Core
Here Mudassar Ahmed Khan has explained with an example, how to send email using SMTP Server in ASP.Net Core.

For illustration purposes, this article will use GMAIL SMTP Mail Server for sending emails in ASP.Net Core.
20 Nov 2021 20 Nov 2021 0 Comments  11591 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained with an example, how to get Session ID in ASP.Net Core MVC.
20 Nov 2021 20 Nov 2021 0 Comments  2108 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained with an example, how to display or access Session object inside view in ASP.Net Core MVC.
19 Nov 2021 19 Nov 2021 0 Comments  7214 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained with an example, how to destroy, delete or remove Session objects in ASP.Net Core MVC.
18 Nov 2021 18 Nov 2021 0 Comments  14196 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained with an example, how to get and set Session object (variable) in ASP.Net Core MVC.
18 Nov 2021 18 Nov 2021 0 Comments  22792 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to set Session Timeout value in ASP.Net Core application.

Unlike previous ASP.Net applications, the Session Timeout value is set inside the Startup.cs class in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  11552 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to access HttpContext.Current.Session in .Net Core application.

Unlike previous ASP.Net applications, the Session object is not available under the HttpContext.Current property, instead it is available in the HttpContext class in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  11473 Views
ASP.Net  MVC  Session  Core
Here Mudassar Ahmed Khan has explained, how to solve the following error in ASP.Net Core.

System.InvalidOperationException: Session has not been configured for this application or request.

The above error occurs when Session state is used in ASP.Net Core application without configuring the application.

This article will illustrate how to configure and enable Session state in ASP.Net Core applications.
18 Nov 2021 18 Nov 2021 0 Comments  4536 Views
Here Mudassar Ahmed Khan has explained, how to enable Session in ASP.Net Core.

By default, Session State is disabled in ASP.Net Core applications i.e. ASP.Net Core MVC and ASP.Net Core Razor Pages.

This article will cover the steps to enable Session Sate in ASP.Net Core applications.
16 Oct 2021 16 Oct 2021 0 Comments  5288 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in ASP.Net Core Razor Pages.

This article will also explain how to perform operations on Cookies i.e. reading values stored in Cookies, writing (saving) values in Cookies and also removing (deleting) Cookies in ASP.Net Core Razor Pages.
16 Oct 2021 16 Oct 2021 0 Comments  6986 Views
Here Mudassar Ahmed Khan has explained why HttpContext.Current not working in ASP.Net Core Razor Pages and what is the alternative solution for using the functionality in ASP.Net Core Razor Pages.

Microsoft has permanently removed HttpContext.Current property from .Net Core and introduced a new interface IHttpContextAccessor for .Net Core.
10 Oct 2021 10 Oct 2021 0 Comments  7242 Views
ASP.Net  Cookies  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use Browser Cookies in ASP.Net Core MVC.

This article will illustrate how to perform following operations on Cookies i.e. reading values stored in Cookies, writing (saving) values in Cookies and also removing (deleting) Cookies in ASP.Net Core MVC.
06 Oct 2021 06 Oct 2021 0 Comments  16908 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained why HttpContext.Current not working in ASP.Net Core and what is the alternative solution for using the functionality in ASP.Net Core.

Microsoft has permanently removed HttpContext.Current property from .Net Core and introduced a new interface IHttpContextAccessor for .Net Core.
21 Aug 2021 25 Apr 2022 0 Comments  5091 Views
ASP.Net  AJAX  AngularJS  MVC  Core
Here Mudassar Khan has explained with an example, how to send AntiForgeryToken with AngularJS AJAX request in ASP.Net Core MVC.

The AntiForgeryToken is used to prevent cross-site request forgery (CSRF) attacks and this article will illustrate how to configure and use the AntiForgeryToken during AngularJS AJAX request in ASP.Net Core MVC.
13 Aug 2021 13 Aug 2021 0 Comments  6272 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web API 2 using JavaScript XmlHttpRequest (XHR) and AJAX in ASP.Net Core MVC.

This article will explain how to make a POST call to Web API 2 Controller’s method using JavaScript XmlHttpRequest (XHR) and AJAX in ASP.Net Core MVC.
Results 121 - 140 of 313