GridView & ODS in another assembly

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top