Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
webeditors...
posted

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.

 

 

Parents
  • 24497
    Verified Answer
    posted

    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;

Reply Children
No Data