Objectdatasource updating event args

The Sql Data Source and Object Data Source controls are the two most commonly used data source controls, and they provide a means for retrieving and modifying data from either a database or object library, respectively.

But when inserting into the database, I might get an error. But how do I return some data back into the aspx file?

This post was going to be a rant about how using the Object Data Source was impossible to handle exceptions thrown while retrieving or updating data.

After some experiments and reading some misleading posts I saw only three possible ways: Luckily I accidentally found the right way to do it while looking at the Event Args class properties for the Selected event.

You can also have radio button's giving the user the option to specify from where he want's the value.

Thank you TBohnen, what i actually did was used your Logic and got the idea, I added dropdownlist_selectedindexchanged event ...

559

Leave a Reply

  1. article dating internet services 20 01-Feb-2017 04:38

    As much as we would like to believe love is all butterflies and boundless terms of endearment, when it comes to romance and relationships in the workplace, there can be very real legal consequences for you, the employer, when a workplace romance becomes a workplace tragedy.

  2. Sex dates in netherlands 15-Apr-2017 12:33

    Also it is important to remind the reader that most tgirls-Ts might not be tempted into sex-chat straight away and therefore taking a mild approach will be the first rule to slowly conquer the shemale of your dreams.

  3. online dating in oxfordshire 02-Mar-2017 09:37

    Instead of robbing people and seeing how long you can last with five stars and cops on your tail, you’re tasked with having as much sex as possible, and you’re free to do it with whoever you want. Another game that parodies a well-known franchise, Call of Booty is just like the Call of Duty first-person shooter games, only instead of wearing cool armor and accessories, every player is completely naked. As you run around various maps and shoot mercilessly at other players, your virtual private parts are going to be visible to everyone; in Call of Duty, head shots will get you killed, while in Call of Booty, one well-placed bullet to the nuts and you’re done.