Results 6 - 10 of 492
15 Jul 2019 15 Jul 2019 0 Comments  955 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Entity Framework data to CSV file in ASP.Net MVC Razor.

When the Export Button is clicked, the data from Database is fetched using Entity Framework and a Comma Separated (Delimited) string is generated which is exported and downloaded as CSV file in ASP.Net MVC Razor.
12 Jul 2019 12 Jul 2019 0 Comments  1775 Views
Here Mudassar Ahmed Khan has explained with an example, how to export WebGrid to CSV file with formatting in ASP.Net MVC Razor.

First the WebGrid will be populated from database using Entity Framework and when the Export Button is clicked, a Comma Separated (Delimited) string will be generated from WebGrid data and ultimately it will be exported to CSV file in ASP.Net MVC Razor.
21 Jun 2019 21 Jun 2019 0 Comments  4852 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Repeater control functionality in ASP.Net MVC Razor.

In ASP.Net MVC, there is no provision of using Web Forms controls such as Repeater control, but the same functionality can be easily achieved with the use of Model collection and FOR loop.
19 Jun 2019 19 Jun 2019 1 Comments  3018 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Image after upload using FileUpload in ASP.Net MVC Razor.

The Image will be uploaded using FileUpload element and inside the Controller, the Image will be saved into a Folder (Directory) while the URL of the Image will be assigned to a ViewBag object which will be later used for displaying the Image inside the Image element in View in ASP.Net MVC Razor.
07 Jun 2019 07 Jun 2019 0 Comments  1903 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement AJAX Call using XML using JavaScript XmlHttpRequest (XHR) in ASP.Net MVC Razor.

The Controller’s Action method will be called using JavaScript XmlHttpRequest (XHR) and JSON from View in ASP.Net MVC Razor.
Results 6 - 10 of 492