Input Mask on Text box

Discussion in 'ASP .Net' started by =?Utf-8?B?RG9u?=, May 9, 2007.

  1. Hello, I have web form that references a field for a phone number. The
    number is stored in the table as a string in this format "(111) 222-3333".
    When I done this in the past for window forms I would give a text box an
    input mask. When the user clicked into the text box this would appear "( )
    - " with focus to the right of the (. After typing in the first 3
    numbers the cursor would jump over the ) and a empty space. After entering
    the next 3 numbers the cursor would jump over the -. Can this be down with a
    web form?

    Thanks
    =?Utf-8?B?RG9u?=, May 9, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?RG9u?=

    Mark Rae Guest

    Mark Rae, May 9, 2007
    #2
    1. Advertising

  3. You could use the MaskedEdit control from the AJAX Control Toolkit:
    http://ajax.asp.net/ajaxtoolkit/MaskedEdit/MaskedEdit.aspx

    --
    I hope this helps,
    Steve C. Orr,
    MCSD, MVP, CSM, ASPInsider
    http://SteveOrr.net


    "Don" <> wrote in message
    news:...
    > Hello, I have web form that references a field for a phone number. The
    > number is stored in the table as a string in this format "(111) 222-3333".
    > When I done this in the past for window forms I would give a text box an
    > input mask. When the user clicked into the text box this would appear
    > "( )
    > - " with focus to the right of the (. After typing in the first 3
    > numbers the cursor would jump over the ) and a empty space. After
    > entering
    > the next 3 numbers the cursor would jump over the -. Can this be down with
    > a
    > web form?
    >
    > Thanks
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider], May 9, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Russ

    Input mask on a text box?

    Russ, Dec 29, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    1,807
    Peter Blum
    Dec 30, 2003
  2. cjl
    Replies:
    1
    Views:
    10,497
    Michael Winter
    Oct 31, 2005
  3. TBC

    Input mask for Text Box Control

    TBC, Sep 10, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    398
    Robert Koritnik
    Sep 13, 2004
  4. Marcin Tyman

    Conversion mask in hex to bit mask

    Marcin Tyman, May 6, 2008, in forum: Ruby
    Replies:
    4
    Views:
    809
    Robert Klemme
    May 6, 2008
  5. 187
    Replies:
    2
    Views:
    556
    Bart Lateur
    Jul 29, 2004
Loading...

Share This Page