Partial Postback not working when required field validato present in the form

Posted on 2009-04-26
Last Modified: 2012-05-06
Hello Guys, I have started to use Visual Web Developer 2008 to develop a HRIS web application for my company. I am using the update panel to do a partial postback, but when i click the button inside the update panel, the required field validator gets fired which is validating a text box. Not sure why its happening, but i though the update panel, should do a partial postback, giv the result and then proceed to the text box. Please guys, guide me as to where i am wrong. Thanks in advance..
Question by:preethamonline
    LVL 14

    Expert Comment

    by:Dustin Hopkins
    The required field validator will be fired before the page actually does a callback. This is because the RFV control uses javascript to validate the control.

    Hope this helps,

    Author Comment

    How can i avoid doing this. Should i use javascript to validate the textboxes

    Author Comment

    Should i set enableclientscript = false. What will happen if its false?
    LVL 14

    Accepted Solution


    If you wan't not to use validation on button click, set the property of the button CausesValidation=false

    Author Comment

    Thanks Giftson. This is what i wanted. Thanks a lot.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now