New Additions
17 Feb 2020 17 Feb 2020 0 Comments  145 Views
Here 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.
14 Feb 2020 14 Feb 2020 0 Comments  240 Views
Here 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.
14 Feb 2020 14 Feb 2020 0 Comments  158 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  245 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  205 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.
07 Feb 2020 07 Feb 2020 0 Comments  358 Views
Here 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.
06 Feb 2020 06 Feb 2020 0 Comments  270 Views
Here 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.
05 Feb 2020 05 Feb 2020 0 Comments  338 Views
Here 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.
31 Jan 2020 31 Jan 2020 0 Comments  626 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  603 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.
29 Jan 2020 29 Jan 2020 0 Comments  529 Views
Here Mudassar Ahmed Khan has explained why Server.MapPath not working in ASP.Net Core and what is the alternative solution for using the functionality 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.
28 Jan 2020 28 Jan 2020 0 Comments  542 Views
ASP.Net  MVC  Email  Gmail  Core
Here Mudassar Ahmed Khan has explained a short tutorial with example on how to send emails in ASP.Net MVC Core 2.1.

This article will illustrate how to send emails with attachment using SMTP Mail Server in ASP.Net MVC Core.

This article will make use of GMAIL SMTP Server for sending emails in ASP.Net MVC Core.
24 Jan 2020 24 Jan 2020 0 Comments  565 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained a short tutorial with example on how to use ViewData in ASP.Net MVC Core 2.1.

ViewData is derived from the ViewDataDictionary class and is basically a Dictionary object used for passing data from Controller to View.
22 Jan 2020 22 Jan 2020 0 Comments  441 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained a short tutorial with example on how to use ViewBag in ASP.Net MVC Core 2.1.

ViewBag is a wrapper written over ViewData in order to make it easier to use and it was present in ASP.Net MVC Razor and now continued in ASP.Net MVC Core.
06 Jan 2020 06 Jan 2020 0 Comments  937 Views
ASP.Net  MVC  Form  Model  Core
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC Core 2.1.

This article will explain how to create Form Fields using Model class and then pass (get) data from View to Controller using Model class object in ASP.Net MVC Core 2.1.
04 Jan 2020 04 Jan 2020 0 Comments  887 Views
Here Mudassar Ahmed Khan has explained with an example, how to display message from Controller in View using JavaScript Alert MessageBox in ASP.Net MVC Core.

The message sent from Controller to View will be displayed in JavaScript Alert MessageBox using ViewBag object in ASP.Net MVC Core.
25 Dec 2019 25 Dec 2019 0 Comments  1203 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has provided a short Hello World Tutorial using a small Sample Program example on how to use and develop applications in ASP.Net MVC Core 2.1 for the first time.

This article makes use of Visual Studio 2017 for developing the ASP.Net MVC Core 2.1 Hello World Tutorial with Sample Program example.
21 Dec 2019 21 Dec 2019 0 Comments  1120 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear TextBox on Click using jQuery.

Clearing the TextBox's Text on Click is called Watermarking TextBox.

This article will explain how to clear TextBox on Click i.e. Watermark TextBox using the FREE ASPSnippets jQuery Watermark plugin.
21 Dec 2019 21 Dec 2019 0 Comments  914 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear TextBox on Focus using jQuery.

Clearing the TextBox's Text on Focus is called Watermarking TextBox.

This article will explain how to clear TextBox on Focus i.e. Watermark TextBox using the FREE ASPSnippets jQuery Watermark plugin.
21 Dec 2019 21 Dec 2019 0 Comments  1111 Views
HTML  JSON  Table
Here Mudassar Ahmed Khan has explained with an example, how to convert JSON data to HTML Table using JavaScript.

The HTML Table will be dynamically created by looping through the JSON array elements on Button Click using JavaScript.
21 Dec 2019 21 Dec 2019 0 Comments  1392 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (export) JSON string as PDF using JavaScript.

The JSON string will be converted into a JSON object. The data from the JSON object will be used to populate an HTML Table and later the HTML Table will be downloaded (exported) as PDF file using the pdfmake plugin in JavaScript.
19 Dec 2019 19 Dec 2019 0 Comments  929 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ViewState variable inside JavaScript in ASP.Net with C# and VB.Net.

ViewState is a Server Side class object which though stores the data on Client Side but it is in Encrypted Form (Hashed format) and hence cannot be read by Plain JavaScript.

Thus the ViewState variable is accessed inside JavaScript code with the help of Server Side Code Blocks in ASP.Net with C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  1454 Views
Here Mudassar Ahmed Khan has explained with an example, how to store (save) Temporary data in GridView in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the data from the TextBoxes will be inserted into a DataTable which will be stored (saved) in ViewState and later used to populate the GridView in ASP.Net using C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  928 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Page_ClientValidate function with JavaScript in ASP.Net.

Page_ClientValidate is an ASP.Net JavaScript function in-built which is used to perform ASP.Net validation explicitly i.e. invoking the ASP.Net Validators using JavaScript.

For example, in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function in ASP.Net.
16 Dec 2019 16 Dec 2019 0 Comments  836 Views
Here Mudassar Ahmed Khan has explained with an example, how to download JSON object (Array) as File from Browser using jQuery.

Initially a JSON object (Array) will be created and then it will be converted into a JSON String, then to BLOB object and ultimately downloaded (exported) as Text file from Browser using jQuery.