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
945
WebMaskEdit apeparing with strange values
posted

I have a WebMaskEdit with the following mask

 ##°##.###'>L

This sets my initial value to

  °  .   '

It basically a Latitude coordinate..so 56°47.639'N would be a valid entry...

If i put nothing into the field i am getting the following back from both the Text and Value properties..

° 1.6 '

Where are the 1 & 6 appearing from...On the page the control appears empty

If i put in 56°47.639'N

I get

56° 1.6 4' 

Again 1 & 6 are appearing in the middle

Parents
  • 24497
    posted

    Hi,

    I ran following page

    <igtxt:WebMaskEdit ID="MaskEdit1" runat="server" InputMask="##ø##.###'&gt;L"></igtxt:WebMaskEdit>

    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

    and on button click I did

    this.Label1.Text = this.MaskEdit1.Text;

    I did not find any misbehavior or extra 1.6. I think you should review logic of your application. Maybe there is some kind of initialization or similar thing which fill value.

     

Reply Children
No Data