TextChanged event

Results 1 to 2 of 2

Thread: TextChanged event

  1. #1
    Join Date
    Dec 1969

    Default TextChanged event

    Hi,<BR>I have a textbox txt_Country in my aspx web form against which I have set a comparevalidator.<BR>On TextChanged event of the txt_Country textbox I have some subroutine running but only after it passes the validator check.Initially I had given this check on click of a button it worked fine, that is it showed the error and did not postback but on TextChanged event it also does show the error message but also runs the subroutine which it should not if there is an validator error.Whats the problem here in using TextChanged event.

  2. #2
    Join Date
    Dec 1969

    Default RE: TextChanged event

    Not sure why but here is what you can do...<BR><BR>At the top of your subroutine do a <BR>Page.Validate<BR><BR>then check to make sure it was valid with<BR>If Page.IsValid then....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts