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

IT Services And Support

Email : ren@techsolus.co.uk
Mobile Phone : 0788 68 41 411
Answerphone : 01204 469683
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.

Cheers.

Post A Comment

Name Comment
programming services asp.net specialist
Valid XHTML 1.0 Transitional
Admin
GD