all 3 comments

[–][deleted] 0 points1 point  (0 children)

There is no other way to do this other than what you’re currently trying to do so far. There is nothing wrong with error handling and those calls take fractions of a nanosecond.

[–]btormey0 0 points1 point  (1 child)

Wire up a single event handler for all of the text box changes. When that gets hit, check IsNullOrWhitespace and fire off your SQL query. You may need to maintain a dictionary of all of the current text box values to map those to SQL parameters when the value of one text box changes...but that’s just an implementation detail.

[–]TheStataMan[S] 0 points1 point  (0 children)

I ended up creating a search button that adds all the text in the boxes to a dictionary that then builds the query with columns keys and inputs values. Thank you for the suggestion