Web Connection
wwWebTextBox Change is really OnBlur?
Gravatar is a globally recognized avatar based on your email address. wwWebTextBox Change is really OnBlur?
  Michael Hogan (Ideate Hosting)
  All
  May 2, 2020 @ 11:16am

Seems that the Change action on wwWebTextBox is only called OnBlur.

Any easy solutions - or just revert to Javascript?

Gravatar is a globally recognized avatar based on your email address. re: wwWebTextBox Change is really OnBlur?
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  May 2, 2020 @ 10:24pm

Not sure what you're asking. A textbox has a change client side event and on auto-postback it'll try to submit the form.

Other than that the Web Control base class doesn't do anything with change notifications since it's server side code.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: wwWebTextBox Change is really OnBlur?
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  May 3, 2020 @ 11:42am

Right - but the change is only triggered when you exit the textbox - correct?

Gravatar is a globally recognized avatar based on your email address. re: wwWebTextBox Change is really OnBlur?
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  May 3, 2020 @ 02:08pm

Right - but the change is only triggered when you exit the textbox - correct?

Yes.

If you want to update per key you have to use JavaScript and handle the onkeyup or onkeydown events and manully fire the same postback events. OTOH, that's a really bad idea for the postback code, so if you want to look at the key events you should only do this on the client side.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: wwWebTextBox Change is really OnBlur?
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  May 3, 2020 @ 03:07pm

Yup - thought so. Got it.

© 1996-2020