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
592
Cannot paste text value to WebMaskEdit control
posted

Hi All,

I am using WebMaskEdit control from Vol 2010.1 and have an issue that need you help.

I set the mask = >AAAA-AAAA-AAAA-AAAA

But when I copy a text as "ABCD-ABCD-ABCD-ABCD" then paste to the WebMaskEdit control, the text on the control becomes "ABCD- ABC-D AB-CD A".

Here is the code:

 

 

 

<

 

 

igtxt:WebMaskEdit ID="txtMask" runat="server" InputMask

=">AAAA-AAAA-AAAA-AAAA"

 

 

Width="150px" CssClass="ctlText" DisplayMode="Mask" DataMode="RawText"

>

 

 

 

 

</igtxt:WebMaskEdit

>

Please help me to resolve this issue so that I could just copy the text in exactly mask then paste to the control. It is not convenience to remove "-" charater before copy and paste.

Thanks you,

Nguyen Huu Chu - VNet

Parents
No Data
Reply
  • 592
    posted

    Hi Viktor,

    Thanks you for the solution. It is very helpfull.

    We also found a solution by setting DataMode = "'AllText" then the Paste work well. We just need to do some parsing at server side to remove the hyphen character if need.

    Regards,

    Chu

Children
No Data