Results 11 - 15 of 61
05 Dec 2018 05 Dec 2018 0 Comments  242 Views
Here Mudassar Ahmed Khan has explained with an example, the difference between ReadOnly and Disabled attributes in HTML.

The ReadOnly and Disabled attributes though work in same manner i.e. restrict the User from inputting data in the Form elements in HTML, there are still differences in both.
30 Nov 2018 30 Nov 2018 0 Comments  267 Views
Here Mudassar Ahmed Khan has explained with an example, how to assign ViewBag value to TextBox in ASP.Net MVC Razor.

This article will illustrate how to assign ViewBag value to TextBox created using Html.TextBox helper function in ASP.Net MVC Razor.
27 Nov 2018 27 Nov 2018 0 Comments  391 Views
Here Mudassar Ahmed Khan has explained with an example, how to make TextBoxes created using Html.TextBox and Html.TextBoxFor helper functions ReadOnly i.e. not editable in ASP.Net MVC Razor.

The TextBoxes can be made ReadOnly by setting the HTML ReadOnly attribute using the HtmlAttributes parameter in Html.TextBox and Html.TextBoxFor helper functions.
23 Nov 2018 23 Nov 2018 0 Comments  506 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) values from FormCollection inside Controller in ASP.Net MVC Razor.

FormCollection is a Key-Value pair collection and the value of each submitted Form field can be accessed using its Name attribute value.
23 Nov 2018 23 Nov 2018 0 Comments  420 Views
Here Mudassar Ahmed Khan has explained with an example, how to assign (set) value to TextBox using TempData in ASP.Net MVC Razor.

This article will illustrate how to use TempData to set value in TextBox created using Html.TextBox helper function in ASP.Net MVC Razor.
Results 11 - 15 of 61