Results 6 - 10 of 484
23 May 2019 23 May 2019 0 Comments  1127 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from Controller to View using Session in ASP.Net MVC Razor.
23 May 2019 23 May 2019 0 Comments  789 Views
Here Mudassar Ahmed Khan has explained a short tutorial with example on how to use Session in ASP.Net MVC Razor.

Session is derived from the HttpSessionStateBase class and is used for persisting data i.e. State Management across requests in ASP.Net MVC Razor.
21 May 2019 21 May 2019 0 Comments  1121 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable in JavaScript using jQuery in ASP.Net MVC Razor.

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

Thus, the solution is to make an AJAX call using jQuery AJAX and pass the value of JavaScript variable to a Controller and inside the Controller the value will be set in Session variable in ASP.Net MVC Razor.
10 May 2019 10 May 2019 0 Comments  1112 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (export) HTML to Word Document in ASP.Net MVC Razor.

First the Grid (Html Table) will be populated from database using Entity Framework.

When the Export Button is clicked, the HTML string will be sent to the Controller and will be downloaded as Word file in ASP.Net MVC Razor.
18 Apr 2019 19 Apr 2019 0 Comments  748 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from Controller to View using ViewBag in ASP.Net MVC Razor.

The List Collection will be populated from Database using ADO.Net inside the Controller and it will be converted to Array and passed to the View using ViewBag.

Later in View, the Array will be iterated and the data will be displayed with the help of HTML Table in ASP.Net MVC Razor.
Results 6 - 10 of 484