Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a format to the TextBox in asp.net [closed]

I need to format an asp.net text box in such a way that it accepts the user input only in the form of

### - ### - ### (#:numerics only).

Suggestions or answers please.

like image 328
Shweta Avatar asked Oct 17 '25 19:10

Shweta


1 Answers

MaskedEdit might be what you're looking for.

Here is an modified example from the link above:

<ajaxToolkit:MaskedEditExtender runat="server"
    TargetControlID="TextBox2" 
    Mask="999-999-9999" />
like image 197
Lam Chau Avatar answered Oct 19 '25 08:10

Lam Chau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!