Category - Model
Results 1 - 5 of 20
15 Apr 2021 15 Apr 2021 0 Comments  769 Views
ASP.Net  MVC  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Model data to Action method with data using QueryString Parameters in ASP.Net MVC Razor.

When a Button is clicked, the Model object is populated with values and passed (sent) to the RedirectToAction method along with the name of the Controller and its Action method in ASP.Net MVC Razor.
10 Apr 2021 15 Apr 2021 0 Comments  3051 Views
ASP.Net  MVC  Button  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to redirect to Action method with Model data in ASP.Net MVC Razor.

When a Button is clicked, the Model object is populated with values and passed to the RedirectToAction method along with the name of the Controller and its Action method in ASP.Net MVC Razor.
14 Mar 2021 14 Mar 2021 0 Comments  1141 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind CheckBox (multiple CheckBoxes) using Model in ASP.Net MVC Razor.

The Database data will be populated in generic list collection of Model class and then the Model will be sent to the View where it will be bound to the CheckBox in ASP.Net MVC Razor.
15 Jan 2021 15 Jan 2021 0 Comments  2030 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass Model data from Controller to View in ASP.Net Core MVC.

The data from the SQL Server Database will be fetched using Entity Framework and populated into Model which will be later sent to the View in ASP.Net Core MVC.
18 Nov 2020 18 Nov 2020 0 Comments  2996 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind Model Properties in ASP.Net Core Razor Pages.

The value of the Name attribute of the Field e.g. a TextBox is used as the name of the Property and then the Property is decorated with BindProperty attribute which then binds the property to the Field in ASP.Net Core Razor Pages.
Results 1 - 5 of 20