Category - MVC
Results 1 - 5 of 663
18 Jan 2021 18 Jan 2021 0 Comments  119 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using TempData in ASP.Net MVC Razor.

TempData itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
18 Jan 2021 18 Jan 2021 0 Comments  110 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using ViewData in ASP.Net MVC Razor.

ViewData itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
18 Jan 2021 18 Jan 2021 0 Comments  107 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using ViewBag in ASP.Net MVC Razor.

ViewBag itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
15 Jan 2021 15 Jan 2021 0 Comments  291 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.
15 Jan 2021 15 Jan 2021 0 Comments  171 Views
Here Mudassar Ahmed Khan has explained with an example, how to change the default Camel Case JSON Output in ASP.Net Core.

The default Camel Case JSON property names tend to break the Client Side JavaScript and hence in order to remove it, the default JSON Serialization needs to be replaced with Newtonsoft.Json Serialization in ASP.Net Core.
Results 1 - 5 of 663