DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ClientSide Validation

  1. #1
    Hari Guest

    ClientSide Validation


    Thanks Petersen!

    I've got a small doubt. Is it possible to have client side event handler
    for a server control. That is - before submiting the form, I want to do some
    validation in the client side. it is possible?. When I tried it, it is giving
    error.Could anyone please explain me!!!

    Thanks,
    Sakthi


  2. #2
    Constance J. Petersen Guest

    Re: ClientSide Validation

    Hi Sakthi,

    "Hari" <v_hari@indya.com> wrote in message news:3ca9c27e$1@10.1.10.29...
    > I've got a small doubt. Is it possible to have client side event handler
    > for a server control. That is - before submiting the form, I want to do some
    > validation in the client side. it is possible?. When I tried it, it is giving
    > error.Could anyone please explain me!!!


    It's fairly simple with HTML server controls. What error message are you
    getting? Can you post the problem code?
    --
    Constance Petersen, DevX newsgroup section leader
    SoftMedia Artisans, Inc.
    http://www.smartisans.com
    For useful, usable software and Web sites
    Featured Web design: http://www.keweenawnow.com/
    --
    Please reply in the newsgroup so everyone can benefit




  3. #3
    Hari Guest

    Re: ClientSide Validation


    Hi,
    That was my mistake only.

    Here is my code with error:

    <INPUT id="Button1" type="button" value="Button" name="Button1" runat="server"
    onclick="SubmitForm()">

    Here is my code without error:

    <INPUT id="Button1" type="button" value="Button" name="Button1" runat="server"
    onclick="SubmitForm();">

    that ";" after the function call gave me error. Thank you!

    - Hari


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center