Results 6 - 10 of 458
21 Jan 2019 21 Jan 2019 0 Comments  695 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.
16 Jan 2019 16 Jan 2019 0 Comments  863 Views
Here Mudassar Ahmed Khan has explained with an example, how to set MaxLength property for TextBoxes created using Html.TextBox and Html.TextBoxFor helper functions in ASP.Net MVC Razor.

The MaxLength for TextBoxes is set using the HTML MaxLength attribute using the HtmlAttributes parameter in Html.TextBox and Html.TextBoxFor helper functions.
06 Dec 2018 06 Dec 2018 0 Comments  1044 Views
Here Mudassar Ahmed Khan has explained with an example, how to enable or disable TextBox based on condition in ASP.Net MVC Razor.

A Boolean value will be stored in a ViewBag object based on some condition inside the Controller’s Action method and the value of the ViewBag object will be used to enable or disable the TextBox in View.
04 Dec 2018 04 Dec 2018 0 Comments  1035 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Label value inside Controller in ASP.Net MVC Razor.

This article will illustrate how to set value of Label in ViewBag object inside Controller and later use the ViewBag object to set value in Label inside View in ASP.Net MVC Razor.
04 Dec 2018 04 Dec 2018 0 Comments  676 Views
Here Mudassar Ahmed Khan has explained with an example, how to assign (set) ViewBag value in Label in ASP.Net MVC Razor.

This article will illustrate how to use ViewBag to set value in Label created using Html.Label helper function in ASP.Net MVC Razor.
Results 6 - 10 of 458