I am building a asp.net page dynamically.
The controls are laid out in advance, I then read a dataset and apply text to labels with corresponding text boxs.
The issuse I am running accross is that based on the label text, the input migh tbe that of a phone, or zip code or just a required entry.
Is there a method of extending or changeing the properties of the webtextedit box to that of a webmaskedit. This is all donw inthe code behind when the pageloads.
thanks.
Hi,
If you need masked input, then the best choice is WebMaskEdit and you may set InputMask dynamically.
For example, if you want to switch between "(###) ###-####" and "##-##-####", then you may
string mask1 = "Tel: (###) ###-####", mask1 = "SS: ##-##-####";if(myCondition) this.WebMaskEdit1.InputMask = mask1;else this.WebMaskEdit1.InputMask = mask2;