Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / June 2004

Tip: Looking for answers? Try searching our database.

Custom Validator

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sunil Sabir - 29 Jun 2004 17:04 GMT
Dear All,

      I want to use a Custom Validator which checks two things.Firstly that
      the user should only enter letters.Secondly, The text box should not
       be empty when the submit button is clicked. I know that I can do this
       by required field validator. But I want to do two things using one
       control. I have done the first part which only checks that the user
       has entered only letters.But cant figure out how to do the second part.
       which is(text box should not  be empty when the submit button is
       clicked)

       Any help much appreciated.

       cheers,
       Sunil Sabir
Jacques Leclerc - 30 Jun 2004 03:17 GMT
What you want to do can be accomplished using the regular expression
validator.

The regular expression to use:  ^[a-zA-Z]+$

Hope this helps.

Jacques Leclerc

> Dear All,
>
[quoted text clipped - 11 lines]
>         cheers,
>         Sunil Sabir

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.