The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a masked edit text box with a mask of ###-###-####. I want to make this field required, what do I put in the initial value of the required field validator to know that the field has not been filled in?
ADAdministrator Syncfusion Team October 20, 2006 09:57 PM UTC
Hi Melissa,
The InitialValue should be exactly what you see there " - - " (replacing # with spaces). The RequiredFiedlsValidator ignores leading and trailing spaces, so you can ignore them too.
-Praveen
MEMelissaOctober 24, 2006 11:46 AM UTC
I had tried that and it didn't work. Here is the code that I have.
< s s w:MaskedEditTextBox ID="PhoneTextBox" Mask="###-###-####" Value='<%# Bind("Phone") %>' runat="server" Width="80px" />
< a s p:RequiredFieldValidator ID="RequiredFieldValidator8" InitialValue=" - - " runat="server" ErrorMessage="Phone is Required" ControlToValidate="PhoneTextBox">* a s p:RequiredFieldValidator>
I have also tried an initial value of "- -", " - - ", and many other variations to no avail.
>Hi Melissa,
The InitialValue should be exactly what you see there " - - " (replacing # with spaces). The RequiredFiedlsValidator ignores leading and trailing spaces, so you can ignore them too.
-Praveen
ADAdministrator Syncfusion Team October 25, 2006 08:37 AM UTC
Hi Melissa,
The RequiredFiedlsValidator cannot ignore the space between the literals.