consultancy chorley ASP.NET Server Side Scripting Wigan
Website Development Radcliffe

A Coder's Notes

Email :
bespoke invoice systems Standish Information Technology Advice Worsley
    development systems Ramsbottom
data manipulation Farnworth access databases Whitefield SQL connections Atherton
online accessible software Leyland software compatible Coppull

Get connected and Online Tottington
remote management Makerfield code and design Aspull

ASP.NET Regex to Test Input for NUMBERS Only - 08/12/2010

Here's the bit you want... 

if regex.ismatch(mytext.text, "^\d+$") = false then
  mytexterror.text = "Please Only Enter a Number"
end if

Regex is really confusing...don't ask me to explain the regex part.  I just use other people's examples.  If anyone wants to write a simple, clear explanation about regex I'd be happy to publish it here.


Post A Comment

Name Comment
programming services specialist
Valid XHTML 1.0 Transitional