question regaurding user defined controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi i create a user defined control for entering company information into a
database.
The control consists of a four text boxes, a drop down menu and two buttons.
the buttons handle submitting the data to the DB and resetting the form data
fields. The control has all the neccessary underlying code for the
cancel/reset button and the submit button. when i try to test this control it
does nothing. anyone have any ideas? thanks
 
Shawn,

It's hard to tell exactly why it does nothing. It's possible that an
exception is being thrown, and swallowed by the control firing the event. I
would check the code for your event handlers in your debugger, making sure
that it breaks on any exception thrown.

Hope this helps.
 
Don't forget to check if your eventhandlers are still wired to the target
methods. Visual Studio tends to loose these handlers from time to time if
you're switching back and forth between design mode (which is why
handwriting everything is so beautiful as you never run into these
problems).
 
Assuming you have an active connection and no exception thrown, you might
have a trigger on the table that fails and does a rollback. If that is the
case, use a RAISERROR with severity greater than 10.

Hope this helps.
 
Back
Top