473,395 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Masking a textbox as phone number box

Hi All

I have a textbox want to mask as phone box. How can I do it?

Thanks
Nov 18 '05 #1
3 5178
As far as I know, you can't do this directly. You'll need to use a
client-side validator, probably a regular expression validator.

Regards,

Mun

--
Munsifali Rashid
http://www.munsplace.com/

"Hai Nguyen" <ha******@neo.tamu.edu> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Hi All

I have a textbox want to mask as phone box. How can I do it?

Thanks


Nov 18 '05 #2
You could use this free control:
http://www.assistedsolutions.com/def...page=inputmask

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Hai Nguyen" <ha******@neo.tamu.edu> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Hi All

I have a textbox want to mask as phone box. How can I do it?

Thanks

Nov 18 '05 #3
Hi Steve

I did come to this page to download it to my computer. I ran it and it works
with the original folder
I started opening up my application and creating a small webform to test if
it works. I could not make it run
There were what i did
1/ Copy the file: AssistedSolutions.WebControls.InputMask.dll to my bin
folder
2/ Copy: <%@ Page language="c#" Codebehind="default.aspx.cs"
AutoEventWireup="false" Inherits="SampleProject._default" %>

It still did not work like the sample file even though i looked up the
assemblyinfo.cs and web.config
Do i have to do anything else?



Enter Phone Number:

http://www.assistedsolutions.com/def...page=inputmask


----- Original Message -----
From: "Steve C. Orr [MVP, MCSD]" <St***@Orr.net>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Sunday, January 11, 2004 5:27 PM
Subject: Re: Masking a textbox as phone number box

You could use this free control:
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Hai Nguyen" <ha******@neo.tamu.edu> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Hi All

I have a textbox want to mask as phone box. How can I do it?

Thanks


"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl... You could use this free control:
http://www.assistedsolutions.com/def...page=inputmask
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Hai Nguyen" <ha******@neo.tamu.edu> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
Hi All

I have a textbox want to mask as phone box. How can I do it?

Thanks


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Shannan Casteel via AccessMonster.com | last post by:
I'll explain as well as possible...not an experienced user...but learning. I am working on a database for different kinds of problems with machines. A user will be able to select a problem...
1
by: Suresh | last post by:
Hi, How to set Mask for TextBox component. For example, if a TextBox is intended for Phone Number Data entry, how do we enable it so that user can type using a mask like (999)> 999-9999? ...
4
by: Jason Cowsill | last post by:
Hi - I am looking for a way to dynamically alter a textbox WHILE the user is typing in it. One example would be while a user is entering their phone number a dash would be entered automatically...
2
by: Oleg Ogurok | last post by:
Hi there, I have a modified ASP.NET TextBox control that formats its output as the phone number, e.g. if you enter "1234567890" it'll change the value to "123-456-7890". This is done by a...
2
by: Peter | last post by:
I hate using the mask edit conrol so I created these two function to format my phone numbers. Is there a way to consolidate these two functions into one? In this example say the textbox you...
3
by: Aaron Smith | last post by:
I found an quick and dirty example of a numeric text box that converts the string to a currency mask.. Here is the code: Public Class NumericMaskedTextBox Inherits System.Windows.Forms.TextBox ...
0
by: Zim Babwe | last post by:
I have a MaskedEdit textbox on my Windows form (VS 2005) and I want to mask a phone number. I looked up the digits and 0 is mandatory, 9 is optional. I have my mask defined as (000) 000-0000 X...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
1
by: sparksol | last post by:
I have a form with a drop down box. If you select an option in the drop down box (depending which option is selected) one or two textbox(es) and a submit button display. I would like to keep the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.