I’d like to update SQL when a textbox is changed by the user, but what I’m worried about is updating it every character press essentially will be sending a SQL UPDATE command every single time, potentially even simultaneously if the user is typing fast.
what’s sort of a best practice approach for making it so that i only post the updated textbox after, say maybe, 2 seconds of the user no longer updating the textbox?
probably some variation of binding to the keyup event of the textbox and using a settimeout and cleartimeout to do it?
you can use TextBox leave events. after you done with things. Textbox Leave