Timeline for Could I have any performance issues if I do ID check while using TextChanged in textbox every time user type a character?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7, 2011 at 2:58 | vote | accept | HelpNeeder | ||
Dec 7, 2011 at 2:57 | vote | accept | HelpNeeder | ||
Dec 7, 2011 at 2:58 | |||||
Dec 6, 2011 at 17:28 | comment | added | HelpNeeder | @X-Zero: This is why I have posted this question. I have already figured out how to do this from an array. Earlier I was using TextChanged event handler for a textbox so each time user was typing it was checking and updating things. | |
Dec 6, 2011 at 17:26 | comment | added | Clockwork-Muse | Even if he validates the (partial) ID against the database each time, he still shouldn't be creating the connection every time; that should be managed externally (Usually injected). Unfortunately, I'm not sure how to do that in C#... | |
Dec 6, 2011 at 17:23 | vote | accept | HelpNeeder | ||
Dec 6, 2011 at 17:23 | |||||
Dec 6, 2011 at 17:23 | comment | added | HelpNeeder | This is a good point. Checking elements from an array would be much faster and rechecking for ID numbers can be done less frequently. | |
Dec 6, 2011 at 15:19 | history | answered | Samuel Slade | CC BY-SA 3.0 |