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
Post a Comment