Results 16 - 20 of 100
22 Jan 2019 22 Jan 2019 0 Comments  489 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email using JavaScript and Regular Expression (Regex) in ASP.Net MVC Razor.

When the Submit Button is clicked, the Email Address in the TextBox will be validated using JavaScript and Regular Expression (Regex) and if the Email Address is invalid, the error message will be displayed next to the TextBox in ASP.Net MVC Razor.
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.
16 Jan 2019 16 Jan 2019 0 Comments  919 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  520 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.
Results 16 - 20 of 100