Answers to common questions about ASP.NET Validation

Last post 05-06-2008 9:24 AM by krishnav. 10 replies.

Sort Posts:

  • Answers to common questions about ASP.NET Validation

    08-02-2005, 12:51 PM
    • Loading...
    • PLBlum
    • Joined on 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,075

    I have written an article that answers many of the common ASP.NET validation questions I've found on these forums.

    These questions are answered:
    * What are issues faced when setting up a domain?
    * What should I do to correctly setup server side validation?
    * How do I prevent a Cancel button from validating?
    * How do I assign two separate submit buttons to their own validators?
    * How do I enable validators based on a specific condition on the page?
    * How can I validate before autopostback?
    * How do I show an alert with validation errors?
    * How do I add a confirmation prompt as the page is submitted?
    * What validators are best for date and numeric validation?
    * How to I globalize validators?
    * Can I validate the selection on a ListBox or DropDownList?
    * How can make a CustomValidator evaluate a blank textbox?

    It's on aspalliance: http://aspalliance.com/699

    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Answers to common questions about ASP.NET Validation

    10-25-2005, 3:33 PM
    • Loading...
    • HotChick
    • Joined on 04-25-2005, 8:48 PM
    • Posts 144
    Thank yoU!
  • Re: Answers to common questions about ASP.NET Validation

    01-28-2008, 7:00 AM
    • Loading...
    • sam_soumya
    • Joined on 01-10-2008, 11:42 AM
    • Posts 76

     Hello sir,

                  It is a nice post. I have a question that : Validation controls in asp.net validate the form in client side or server side ?So, they are which type of controls ? (Clientside/serverside)
     

    Thanks & Regards.
    Soumya
  • Re: Answers to common questions about ASP.NET Validation

    01-29-2008, 8:36 AM

    Hi,

    Actually Asp.Net validation controls first check the validation at client site, and also they set IsValid property on the server side (just after page_load event) which we can use in some page controls event to check weather the page is valid or not .

    So its depend upon the way in which you want to use these controls.

    regards,

    Lalit Gautam

  • Re: Answers to common questions about ASP.NET Validation

    04-09-2008, 1:50 PM
    • Loading...
    • livetocode
    • Joined on 02-24-2007, 7:24 PM
    • Posts 5

     nice article 

     

     

    www.CodeExplore.com

    Make money writing articles  

  • Re: Answers to common questions about ASP.NET Validation

    04-09-2008, 1:58 PM
    • Loading...
    • PLBlum
    • Joined on 06-28-2002, 1:20 PM
    • Boston, MA
    • Posts 5,075

    Since I released that article, I have also created a free video on dnrtv! along with complimentary PDF that provides tutorials for some of the trickier validation issues.

    http://www.peterblum.com/dnrtv.aspx

    --- Peter Blum
    Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
    www.PeterBlum.com
  • Re: Answers to common questions about ASP.NET Validation

    04-09-2008, 11:58 PM
    • Loading...
    • ajaypathak
    • Joined on 03-14-2007, 12:21 PM
    • Indore
    • Posts 17

    Thank You

    Ajay Pathak
    http://readerszone.com
    http://allaboutasp.net
  • Re: Answers to common questions about ASP.NET Validation

    04-10-2008, 10:14 AM
    • Loading...
    • uwspstar
    • Joined on 03-23-2008, 8:36 PM
    • Milwaukee
    • Posts 109

    the video lesson will be great for us !

    owner of AskBargains.com
    MCAD & MCSD


    If you mark as "Answer"other people can use this answer as a reference
  • Re: Answers to common questions about ASP.NET Validation

    04-21-2008, 5:09 AM
    • Loading...
    • Ahtesham
    • Joined on 04-09-2008, 12:00 PM
    • Posts 4
    i have a question that when we use some other validation like spry by adobe. if we r using default validtaion by VS that other validation do not work , how can i enable that validtaion too
  • Re: Answers to common questions about ASP.NET Validation

    04-24-2008, 2:51 AM
    • Loading...
    • zubinjoshi
    • Joined on 02-23-2008, 7:37 AM
    • Delhi India
    • Posts 58

    i would like to add some points .....

    asp.net validation controls are server side but still page does not post back. it handles the situtation in backend. if cause validation is true , checks in the client side. and if the browser

    javascript is disabled then it perform it through server side. so it is advisable that if we are using server side validation we have to check in the server side

    as like

    page.validate()

    if(page.isValid)

    {

    //do something

    }

    Mark it Answer if it helps you :)
  • Re: Answers to common questions about ASP.NET Validation

    05-06-2008, 9:24 AM
    • Loading...
    • krishnav
    • Joined on 05-01-2008, 9:45 AM
    • Vijayawada
    • Posts 49

    Nice article thank you

Page 1 of 1 (11 items)