ASPSnippets RSS Feedhttps://www.aspsnippets.com/RSS.ashxLatest additions to the content that appears on ASPSnippets.(c) 2020, www.aspsnippets.com. All rights reserved.Display (Copy) TextBox value to Label using JavaScriptHere Mudassar Ahmed Khan has explained with an example, how to display (copy) TextBox value to Label using JavaScript in HTML. When the Copy Button is clicked, the value of the TextBox is assigned to the Label using JavaScript in HTML.https://aspsnippets.com/Articles/Display-Copy-TextBox-value-to-Label-using-JavaScript.aspxhttps://aspsnippets.com/Articles/Display-Copy-TextBox-value-to-Label-using-JavaScript.aspxMon, 17 Feb 2020 08:28:36 GMTUsing IFormFile in ASP.Net CoreHere Mudassar Ahmed Khan has explained with an example, how to use the IFormFile interface in ASP.Net Core MVC. The IFormFile interface is used for uploading Files in ASP.Net Core MVC.https://aspsnippets.com/Articles/Using-IFormFile-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Using-IFormFile-in-ASPNet-Core.aspxFri, 14 Feb 2020 08:30:29 GMTASP.Net Core: IFormFile always returns NULLHere 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.https://aspsnippets.com/Articles/ASPNet-Core-IFormFile-always-returns-NULL.aspxhttps://aspsnippets.com/Articles/ASPNet-Core-IFormFile-always-returns-NULL.aspxFri, 14 Feb 2020 08:23:15 GMT[Solved] HttpPostedFileBase not working in ASP.Net CoreHere 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.https://aspsnippets.com/Articles/Solved-HttpPostedFileBase-not-working-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Solved-HttpPostedFileBase-not-working-in-ASPNet-Core.aspxFri, 14 Feb 2020 08:10:57 GMTUpload File in ASP.Net Core MVCHere 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.https://aspsnippets.com/Articles/Upload-File-in-ASPNet-Core-MVC.aspxhttps://aspsnippets.com/Articles/Upload-File-in-ASPNet-Core-MVC.aspxThu, 13 Feb 2020 08:09:38 GMTUsing IWebHostEnvironment in ASP.Net CoreHere Mudassar Ahmed Khan has explained a short tutorial with example on how to use IWebHostEnvironment interface in ASP.Net Core. Microsoft has permanently removed Server.MapPath function from .Net Core and introduced a new interfaces IWebHostEnvironment for .Net Core 3.0.https://aspsnippets.com/Articles/Using-IWebHostEnvironment-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Using-IWebHostEnvironment-in-ASPNet-Core.aspxFri, 07 Feb 2020 08:52:38 GMTUsing IHostingEnvironment in ASP.Net CoreHere Mudassar Ahmed Khan has explained a short tutorial with example on how to use IHostingEnvironment interface in ASP.Net Core. Microsoft has permanently removed Server.MapPath function from .Net Core and introduced a new interfaces IHostingEnvironment for .Net Core 2.0.https://aspsnippets.com/Articles/Using-IHostingEnvironment-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/Using-IHostingEnvironment-in-ASPNet-Core.aspxThu, 06 Feb 2020 04:42:41 GMTIHostingEnvironment vs IWebHostEnvironment in ASP.Net CoreHere Mudassar Ahmed Khan has explained a short tutorial with example on what is the difference between IHostingEnvironment interface and IWebHostEnvironment interface in ASP.Net Core. Microsoft has permanently removed Server.MapPath function from .Net Core and introduced a new interfaces IHostingEnvironment for .Net Core 2.0 and IWebHostEnvironment for .Net Core 3.0.https://aspsnippets.com/Articles/IHostingEnvironment-vs-IWebHostEnvironment-in-ASPNet-Core.aspxhttps://aspsnippets.com/Articles/IHostingEnvironment-vs-IWebHostEnvironment-in-ASPNet-Core.aspxWed, 05 Feb 2020 06:26:12 GMTASP.Net Core: Form Submit (Post) ExampleHere 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.https://aspsnippets.com/Articles/ASPNet-Core-Form-Submit-Post-Example.aspxhttps://aspsnippets.com/Articles/ASPNet-Core-Form-Submit-Post-Example.aspxFri, 31 Jan 2020 07:32:53 GMTASP.Net Core: Send Email with AttachmentHere 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.https://aspsnippets.com/Articles/ASPNet-Core-Send-Email-with-Attachment.aspxhttps://aspsnippets.com/Articles/ASPNet-Core-Send-Email-with-Attachment.aspxThu, 30 Jan 2020 07:09:51 GMT