Category - MVC
Results 21 - 25 of 533
14 Feb 2020 14 Feb 2020 0 Comments  884 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem i.e. IFormFile always returns NULL when used in Controller while uploading files in ASP.Net Core MVC.

There are two reasons. First the name of the IFormFile parameter and the name of HTML FileUpload element must be exact same and second that the Form element must be specified with the enctype attribute.
14 Feb 2020 14 Feb 2020 0 Comments  1000 Views
Here Mudassar Ahmed Khan has explained why HttpPostedFileBase not working in ASP.Net Core and what is the alternative solution for using the functionality which is used for uploading Files in ASP.Net Core.

Microsoft has permanently removed HttpPostedFileBase class from ASP.Net Core and introduced a new interface IFormFile for uploading Files in ASP.Net Core 2.0 and ASP.Net Core 3.0.
13 Feb 2020 13 Feb 2020 0 Comments  702 Views
ASP.Net  FileUpload  MVC  PDF  Image  Core
Here Mudassar Ahmed Khan has explained a simple Tutorial with example, how to upload a file in ASP.Net Core MVC.

Multiple files will be selected using HTML FileUpload element and then will be uploaded and sent to Controller.

Inside the Controller, the multiple files will be saved in a Folder (Directory) inside the www Folder in ASP.Net Core MVC.
31 Jan 2020 31 Jan 2020 0 Comments  1577 Views
ASP.Net  MVC  Button  Form  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from View to Controller in ASP.Net Core MVC.

This article will explain how to create Form Fields and then send data from View to Controller using Form Collection in ASP.Net Core MVC.
30 Jan 2020 30 Jan 2020 0 Comments  1313 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained a short tutorial with example on how to send emails with attachment in ASP.Net Core.

This article will make use of GMAIL SMTP Server and SMTP Client class for sending emails in ASP.Net Core.
Results 21 - 25 of 533