S
Sebis
Hi all,
I've problems with using ODS (Object data source). I use for all
database operations extra assembly (like a business tier). And there
I've problem with exception handling. Exceptions fired in
ins/upd/delete methods aren't delegated correctly. All exceptions
finish as unhandled exceptions on the line where are fired
Example:
public void DeleteTest(TestData data)
{
throw new System.ApplicationException("test");
}
---------------
void gv_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
JSAlert(e.Exception.Message);
e.ExceptionHandled = true;
}
}
-------------
<asp:ObjectDataSource ID="odsTest" runat="server"
SelectMethod="GetAllTest" TypeName="DataLayer.Test"
DataObjectTypeName="DataLayer.TestData"
DeleteMethod="DeleteTest"></asp:ObjectDataSource>
-------------
Where can i have made a mistake? Have you any experience with it?
Thank you for your answers.
Regard,
Sebis
I've problems with using ODS (Object data source). I use for all
database operations extra assembly (like a business tier). And there
I've problem with exception handling. Exceptions fired in
ins/upd/delete methods aren't delegated correctly. All exceptions
finish as unhandled exceptions on the line where are fired
Example:
public void DeleteTest(TestData data)
{
throw new System.ApplicationException("test");
}
---------------
void gv_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
JSAlert(e.Exception.Message);
e.ExceptionHandled = true;
}
}
-------------
<asp:ObjectDataSource ID="odsTest" runat="server"
SelectMethod="GetAllTest" TypeName="DataLayer.Test"
DataObjectTypeName="DataLayer.TestData"
DeleteMethod="DeleteTest"></asp:ObjectDataSource>
-------------
Where can i have made a mistake? Have you any experience with it?
Thank you for your answers.
Regard,
Sebis