ASP.NET: regex validation on a text box locks-up text box on postback.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • art vandalay

    ASP.NET: regex validation on a text box locks-up text box on postback.

    Hi,
    I have a web application (done in ASP/C#) that has regex validation on a text box. Initially the regex works perfectly fine. But then I also provide a button click event (clear) that allows the user the clear text box and change their input for a new query. At this point (page post back) the regex takes control and maintains control of the text box so a new query can't be run. Can anyone tell me what to do so that the regex doesn't fire on page postback and allows new input for validation?
    ** Edit ** Removed illegal email address
    Last edited by jhardman; Nov 10 '10, 11:11 PM. Reason: Moved to asp.net forum. Accidentally posted in classic asp
  • khurramzeb
    New Member
    • Oct 2010
    • 8

    #2
    Just check the CausesValidatio n property of Cancel button to false

    Comment

    Working...