Check for Regular Expressions... in System.Text.RegularExpression to match a
zip code of 55555-5555, then when that match is done.. all you have to do is
remove the "-" , which will be...
string sZipCode = "55555-5555";
// use regular expression to validate
sZipCode.Replace("-","");
Vijay
<rt*****@goddard-tech.com> wrote in message
news:Oi**************@TK2MSFTNGP03.phx.gbl...
I'm new using c#.net
I need to validate the zipcode.
How I can be sure that only zipcode are typed and when the users type 5
digits zipcode the "-" do not get save in the record.
Rafael Tejera
ra**********@hotmail.com