asp.net - LinqDataSource Exception -


ho catch sqlexecption linq data source:

<asp:linqdatasource id="linq_tipo" runat="server" contexttypename="linq_clinica_veterinaria" entitytypename="" tablename="tb_tipo_animals"> </asp:linqdatasource> 

what event, can that, before application_error() raised?

catch exception this:

protected void linq_tipo_updating(object sender, linqdatasourceupdateeventargs e) { if (e.sqlexception != null) { //handle exception e.exceptionhandled = true;//set true have handled exception } } 

similarly, can handle inserted, deleted, selecting , other events.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -