Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to use custom validator at client side

how to use custom validator at client side

Scheduled Pinned Locked Moved ASP.NET
designjsonhelptutorialquestion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hemant Garg
    wrote on last edited by
    #1

    Hello to every One, i'm using custom validator to check the textBox1 field and i'm also using the rang and required validator field for another textBox2.. Now when i click the button then all the rest field r being correct the custom validator feild doesnot show the error... nor it is shown in summary validator... could u suggest me how should any one can change custom validator to client side validation.... Private Sub CustomValidator1_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate Dim i As Date If Convert.ToDateTime(args.Value) > "12/2/2007" Then args.IsValid = True Else args.IsValid = False End If End Sub Plz mark the underline event can i change this to client validate and if yes how...? Suggest me.... Thank You

    V 1 Reply Last reply
    0
    • H Hemant Garg

      Hello to every One, i'm using custom validator to check the textBox1 field and i'm also using the rang and required validator field for another textBox2.. Now when i click the button then all the rest field r being correct the custom validator feild doesnot show the error... nor it is shown in summary validator... could u suggest me how should any one can change custom validator to client side validation.... Private Sub CustomValidator1_ServerValidate(ByVal source As System.Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate Dim i As Date If Convert.ToDateTime(args.Value) > "12/2/2007" Then args.IsValid = True Else args.IsValid = False End If End Sub Plz mark the underline event can i change this to client validate and if yes how...? Suggest me.... Thank You

      V Offline
      V Offline
      Viral Upadhyay
      wrote on last edited by
      #2

      yes you can change it to client side. in your custom validator there is client side function where you can pass the function name. You can find this in any book of asp.net

      Viral YahooID : just_viral My Site : www.theseoworld.info

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups