Hi All,
I created a text field user control (txtDouble), in which I do all the validation in this text field to only allow double data type to be entered.
In the form, any fields that need only double data type entry, I will inherit my user control (txtDouble). But I don't understand why the value cannot be loaded into the field. When I debug it, for example the value to txtInput1 (from txtDouble) is 10, it shows 10 when I debug, but when the form loaded, the value in txtInput1 is always 0. Why did it happen?
By the way, I set the txtDouble default value as 0.
Please help.
Or any suggestions on how to make use of user control as my form has 200 text fields in numbers and I need to do validation for all fields and it takes long time to write the validation code for each field. Is there any better way that all the fields can be inherited and the validation can be done in the ascendent?
Thanks.
I created a text field user control (txtDouble), in which I do all the validation in this text field to only allow double data type to be entered.
In the form, any fields that need only double data type entry, I will inherit my user control (txtDouble). But I don't understand why the value cannot be loaded into the field. When I debug it, for example the value to txtInput1 (from txtDouble) is 10, it shows 10 when I debug, but when the form loaded, the value in txtInput1 is always 0. Why did it happen?
By the way, I set the txtDouble default value as 0.
Please help.
Or any suggestions on how to make use of user control as my form has 200 text fields in numbers and I need to do validation for all fields and it takes long time to write the validation code for each field. Is there any better way that all the fields can be inherited and the validation can be done in the ascendent?
Thanks.