Results 1 - 5 of 80
16 Jan 2019 16 Jan 2019 0 Comments  145 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.
16 Jan 2019 16 Jan 2019 0 Comments  170 Views
Here Mudassar Ahmed Khan has provided solution to the problem where value of the TextBox placed in GridView is lost after PostBack in ASP.Net with C# and VB.Net.

When PostBack happens i.e. when Button is clicked or any other control that does PostBack inside GridView, the GridView is again populated with data and hence the modified values in TextBox are lost.
09 Jan 2019 09 Jan 2019 0 Comments  241 Views
Here Mudassar Ahmed Khan has explained with an example, how to display TextBox when CheckBox is checked in ASP.Net using C# and VB.Net.

The CheckBox will be assigned OnCheckChanged event handler and when the CheckBox is checked (selected), the TextBox will be displayed and when the CheckBox is unchecked (unselected) the TextBox will be hidden in ASP.Net using C# and VB.Net.
09 Jan 2019 09 Jan 2019 0 Comments  243 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Text when CheckBox is checked (selected) or unchecked (unselected) using JavaScript and jQuery.

When the CheckBox is clicked based on whether it is checked (selected) or unchecked (unselected), the HTML DIV with some Text will be shown or hidden.
04 Jan 2019 04 Jan 2019 0 Comments  303 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically change HTML INPUT Type from Password to Text using jQuery.

HTML does not allow the Type attribute to be modified with jQuery at runtime and hence the same can be achieved by creating a dynamic TextBox next to the Password TextBox and hiding the Password TextBox.
Results 1 - 5 of 80