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 client side custom validator

How to use client side custom validator

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorial
3 Posts 3 Posters 0 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 one textbox1 and button1 where i'm checking the input text to be "yes" for that i'm able to use server side validation but i want to make the same using client side validation.. Suggest me..... Thank You..

    N K 2 Replies Last reply
    0
    • H Hemant Garg

      Hello to every One, i'm using one textbox1 and button1 where i'm checking the input text to be "yes" for that i'm able to use server side validation but i want to make the same using client side validation.. Suggest me..... Thank You..

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Use a requirefield validator control and specify the client script


      only two letters away from being an asset

      1 Reply Last reply
      0
      • H Hemant Garg

        Hello to every One, i'm using one textbox1 and button1 where i'm checking the input text to be "yes" for that i'm able to use server side validation but i want to make the same using client side validation.. Suggest me..... Thank You..

        K Offline
        K Offline
        koolprasad2003
        wrote on last edited by
        #3

        hello hemant, just use the Javascript,it is best for the client side validation

        Hemant Garg wrote:

        i'm checking the input text to be "yes"

        write the function and check , function ChkInput() { if (document.GetElementById("TextboxName").value == "yes") { alert("Exist") return false; } } and call that function on click event of button hope it helps, koolprasad2003:)

        If the message is useful for U then please Rate This message... Be a good listener...Because Opprtunity knoughts softly...N-Joy

        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