New Additions
21 Jan 2022 21 Jan 2022 0 Comments  288 Views
Here Mudassar Khan has explained with an example, how to get the ID of Button inside ASP.Net GridView when clicked using JavaScript.

When the Button is clicked, a JavaScript function is called and the ID will be fetched and displayed using JavaScript Alert Message Box.
19 Jan 2022 19 Jan 2022 0 Comments  353 Views
Here Mudassar Khan has explained with an example, how to get Session value in JavaScript or jQuery in ASP.Net Core MVC.

JavaScript is a Client Side language and hence directly it is not possible to get Session value in JavaScript.

Thus, the solution is to make an AJAX call using jQuery AJAX function and pass the value of JavaScript variable to a Controller and inside the Controller the value is retrieved from Session object in ASP.Net Core MVC.
19 Jan 2022 19 Jan 2022 0 Comments  266 Views
Here Mudassar Khan has explained with an example, how to get the ID of Button inside ASP.Net GridView when clicked using jQuery.

When the Button is clicked, a jQuery Click event handler will be called and the ID will be fetched and displayed using JavaScript Alert Message Box.
14 Mar 2009 19 Jan 2022 7 Comments  113287 Views
ASP.Net  Excel  GridView  CSV  Word  PDF
Here Mudassar Khan has explained with an example, how to export GridView to Word, Excel, PDF and CSV formats in ASP.Net using C# and VB.Net.

Exporting GridView to Word, Excel and CSV can be easily achieved using ASP.Net without any third party tools, but for exporting to PDF iTextSharp library will be used.

This article will illustrate how to export all Pages of GridView with Paging Enabled to Word, Excel, PDF and CSV file along with formatting i.e. Styles and Colors in ASP.Net.
12 Mar 2013 19 Jan 2022 9 Comments  162303 Views
Here Mudassar Khan has explained with an example, how to use RadioButtons in ASP.Net GridView so that it becomes mutually exclusive using C# and VB.Net.

Mutually exclusive RadioButtons means when one RadioButton is selected, other RadioButton present in the GridView row will be unselected.
14 Jan 2022 14 Jan 2022 0 Comments  452 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  377 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  616 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  520 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  561 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  441 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.
04 Jan 2022 04 Jan 2022 0 Comments  662 Views
Here Mudassar Khan has explained with an example, how to implement Contact Us Form in ASP.Net Core Razor Pages.

The Contact Us Form consists of 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 Razor Pages.
03 Jan 2022 03 Jan 2022 0 Comments  620 Views
Here Mudassar Khan has explained a simple tutorial with example, how to upload a file in ASP.Net Core Razor Pages.

This article will illustrate how to upload multiple files and then save the files in a Folder (Directory) inside the wwwroot Folder in ASP.Net Core Razor Pages.
03 Jan 2022 03 Jan 2022 0 Comments  435 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.
15 Jun 2020 03 Jan 2022 0 Comments  8080 Views
Here Mudassar Khan has explained with an example, how to create a Folder (Directory) inside wwwroot Folder in ASP.Net Core.

The path of the wwwroot folder is accessed using the IHostingEnvironment interface and then using the Directory class a Directory (Folder) is created inside the wwwroot folder in ASP.Net Core.
15 Jun 2020 03 Jan 2022 0 Comments  22461 Views
Here Mudassar Khan has explained with an example, how to upload (save) File to wwwroot Folder (Directory) in ASP.Net Core.

The path of the wwwroot folder is accessed using the IHostingEnvironment interface and the uploaded file is saved to the Directory (Folder) in ASP.Net Core.
14 Feb 2020 03 Jan 2022 0 Comments  29294 Views
Here Mudassar 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 03 Jan 2022 0 Comments  4985 Views
ASP.Net  FileUpload  MVC  PDF  Image  Core
Here Mudassar 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.
28 Dec 2021 28 Dec 2021 0 Comments  631 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  622 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  463 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  426 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  518 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  782 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  691 Views
Here Mudassar Khan has explained with an example, how to display TextBox value in Label using jQuery.

When the Button is clicked, the TextBox value is retrieved and displayed in the Label using jQuery.