Category - MVC
Results 1 - 20 of 786
14 Jan 2022 14 Jan 2022 0 Comments  204 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.
14 Jan 2022 14 Jan 2022 0 Comments  159 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Khan has explained how to solve the problem: jQuery AJAX call parameters passed NULL to Controller in ASP.Net Core.

This article will explain the possible causes of parameters being passed as NULL and also explain the correct approach to perform jQuery AJAX call in ASP.Net Core MVC.
07 Jan 2022 07 Jan 2022 0 Comments  428 Views
ASP.Net  XML  MVC  Model  Core
Here Mudassar Khan has explained with an example, how to read (parse) XML file in ASP.Net Core MVC.

The XML file will be read and the fetched XML records will be parsed and displayed in Grid (HTML Table) format in View using Model in ASP.Net Core MVC.
04 Jan 2022 04 Jan 2022 0 Comments  368 Views
Here Mudassar Khan has explained with an example, how to use Response.Write in ASP.Net MVC.

Response.Write function is not available in ASP.Net MVC and hence this article will illustrate how to do similar functionality in ASP.Net MVC.
04 Jan 2022 04 Jan 2022 0 Comments  363 Views
ASP.Net  XML  MVC
Here Mudassar Khan has explained with an example, how to display Formatted XML in Browser in ASP.Net MVC Razor.

The XML file will be read as string and then its contents will be written to the Response as XML which will ultimately display the Formatted XML in Browser in ASP.Net MVC Razor.
04 Jan 2022 04 Jan 2022 0 Comments  311 Views
ASP.Net  XML  MVC  WebGrid
Here Mudassar Khan has explained with an example, how to read and display XML file data in WebGrid in ASP.Net MVC Razor.

The XML data will be read from an XML file and the fetched XML records will be displayed in WebGrid using Model class in ASP.Net MVC Razor.
03 Jan 2022 03 Jan 2022 0 Comments  314 Views
ASP.Net  MVC  Core
Here Mudassar Khan has explained with an example, how to use IHostingEnvironment inside Controller in ASP.Net Core.

The IHostingEnvironment interface is injected into the Controller class using Dependency Injection in ASP.Net Core MVC.
28 Dec 2021 28 Dec 2021 0 Comments  478 Views
Here Mudassar Khan has explained with an example, how to clear a Cookie in ASP.Net MVC Razor.

Cookies cannot be cleared, it can be made to expire by setting its Expiry Date to a Past Date in ASP.Net MVC Razor.
28 Dec 2021 28 Dec 2021 0 Comments  422 Views
Here Mudassar Khan has explained with an example, how does MVC application get the Cookies from Client in ASP.Net.

In ASP.Net MVC application, a Cookie is created by sending the Cookie to Browser through Response collection (Response.Cookies) while the Cookie is accessed (read) from the Browser using the Request collection (Request.Cookies).
28 Dec 2021 28 Dec 2021 0 Comments  360 Views
Here Mudassar Khan has explained with an example, how to store data in Cookies in ASP.Net MVC Razor.

This article will illustrate how to store data (value) inside a Cookie and then read the value from Cookie in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  336 Views
Here Mudassar Khan has explained with an example, how to get (read) Cookie value inside Controller in ASP.Net MVC Razor.

When the Read Cookie Button is clicked, the Cookie value will be read inside the Controller in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  354 Views
Here Mudassar Khan has explained with an example, how to delete (remove) Cookies in ASP.Net MVC Razor.

Cookies cannot be deleted or removed, it can be made to expire by setting its Expiry Date to a Past Date in ASP.Net MVC Razor.
27 Dec 2021 27 Dec 2021 0 Comments  554 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Email  Gmail
Here Mudassar Khan has explained with an example, how to send email using jQuery AJAX in ASP.Net MVC Razor.

The jQuery AJAX function will call a Web API Action method which will send email using Gmail SMTP Mail Server in ASP.Net MVC Razor.

Once the Email is sent, a Confirmation will be sent back to the jQuery AJAX function which in turn will be display a Success message using JavaScript Alert Message Box.
24 Dec 2021 24 Dec 2021 0 Comments  633 Views
ASP.Net  AJAX  jQuery  MVC  Web API  Email  Gmail
Here Mudassar Khan has explained with an example, how to send Email using Web API and jQuery AJAX in ASP.Net MVC Razor.

When the Send Button is clicked, the SendEmail Action method of the Web API is called using jQuery AJAX and the Email is sent.
15 Dec 2021 15 Dec 2021 0 Comments  762 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  535 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  773 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  501 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  536 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  674 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.
Results 1 - 20 of 786