Category - Model
Results 21 - 32 of 32
25 Aug 2020 25 Aug 2020 0 Comments  41489 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ModelState.IsValid property in ASP.Net MVC Razor.

ModelState.IsValid property is an inbuilt property of ASP.Net MVC which verifies two things:
1. Whether the Form values are bound to the Model.
2. All the validations specified inside Model class using Data annotations have been passed.

ModelState.IsValid property can be used to perform some logical operations based on the values submitted by the User.
25 Aug 2020 25 Aug 2020 0 Comments  9859 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ModelState in View for accessing the ModelState.IsValid property in ASP.Net MVC Razor.

The ModelState can be accessed in View using the ViewData object in ASP.Net MVC Razor
25 Aug 2020 04 Aug 2022 0 Comments  5436 Views
Here Mudassar Khan has explained with an example, how to implement Server Side TextBox Validation using Model in ASP.Net MVC Razor.

The Server Side validations will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
21 Aug 2020 21 Aug 2020 0 Comments  5965 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement TextBox Validation using Model in ASP.Net MVC Razor.

The Client Side validations will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
06 Jan 2020 06 Jan 2020 0 Comments  5861 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.
24 May 2019 24 May 2019 2 Comments  28730 Views
Here Mudassar Ahmed Khan has explained with an example, how to store Model in Session inside Controller and display in View in ASP.Net MVC Razor.

This article will illustrate how to save Model object in Session variable inside Controller and then access it using Razor syntax inside View in ASP.Net MVC Razor.
21 Jan 2019 21 Jan 2019 0 Comments  19214 Views
Here Mudassar Ahmed Khan has explained with an example, how to retrieve (display) data from Database in TextBoxes in ASP.Net MVC Razor.

The data (records) from Database will be fetched using Entity Framework and will be displayed in TextBoxes created using Model class in ASP.Net MVC Razor.
27 Nov 2018 27 Nov 2018 0 Comments  33676 Views
ASP.Net  MVC  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Model to Controller using Html.BeginForm helper function in ASP.Net MVC Razor.

This article will explain how to create Form Fields using Model class and then pass (send) Model data to Controller using Html.BeginForm helper function in ASP.Net MVC Razor.
27 Nov 2018 27 Nov 2018 1 Comments  32636 Views
ASP.Net  MVC  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to POST (Submit) a Form without using Model in ASP.Net MVC Razor.

This article will illustrate how to POST (Submit) a Form using Html.BeginForm helper function and Form Collection in ASP.Net MVC Razor.
23 Nov 2018 23 Nov 2018 0 Comments  4630 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Form Collection and Model values same time to Controller in ASP.Net MVC Razor.

This article will also illustrate how to get values of TextBox created using Html.TextBox helper function using Form Collection and the TextBox created using Html.TextBoxFor helper function using Model inside Controller in ASP.Net MVC Razor.
24 Aug 2018 24 Aug 2018 0 Comments  45380 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) DropDownList from ViewModel in ASP.Net MVC Razor.

The DropDownList will be populated from database using Model class and the Html.DropDownListFor Helper method.
26 Aug 2016 31 Aug 2020 1 Comments  60910 Views
ASP.Net  MVC  Button  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC 5.

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 5.
Results 21 - 32 of 32