Validation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    #1

    Validation

    Hello all,

    I'm very new to ASP.NET and I am using VS.NET to write my pages.

    I am using the Regular Expression Validator on my form and I would like it
    to check a field to make sure it does not equal 0. Can anyone point me to
    some resources with this type of information?

    Thanks,

    - J


  • Karl Seguin

    #2
    Re: Validation

    While you could use a RegExVal for this and check for [^0] or something, you
    could also use a requiredfieldva lidator and set the initialvalue="0 "

    http://msdn.microsoft.com/library/de...ValueTopic.asp

    Karl

    "Jay" <jerry280@yahoo .com> wrote in message
    news:eWCJ5TvSDH A.1036@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hello all,
    >
    > I'm very new to ASP.NET and I am using VS.NET to write my pages.
    >
    > I am using the Regular Expression Validator on my form and I would like it
    > to check a field to make sure it does not equal 0. Can anyone point me to
    > some resources with this type of information?
    >
    > Thanks,
    >
    > - J
    >
    >[/color]


    Comment

    • Jay

      #3
      Re: Validation

      That work perfectly!

      Thanks!

      - J

      "Karl Seguin" <kseguin##crea. ca> wrote in message
      news:ufYnEtvSDH A.2852@tk2msftn gp13.phx.gbl...[color=blue]
      > While you could use a RegExVal for this and check for [^0] or something,[/color]
      you[color=blue]
      > could also use a requiredfieldva lidator and set the initialvalue="0 "
      >
      >[/color]
      http://msdn.microsoft.com/library/de...ValueTopic.asp[color=blue]
      >
      > Karl
      >
      > "Jay" <jerry280@yahoo .com> wrote in message
      > news:eWCJ5TvSDH A.1036@TK2MSFTN GP10.phx.gbl...[color=green]
      > > Hello all,
      > >
      > > I'm very new to ASP.NET and I am using VS.NET to write my pages.
      > >
      > > I am using the Regular Expression Validator on my form and I would like[/color][/color]
      it[color=blue][color=green]
      > > to check a field to make sure it does not equal 0. Can anyone point me[/color][/color]
      to[color=blue][color=green]
      > > some resources with this type of information?
      > >
      > > Thanks,
      > >
      > > - J
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...