ODS events not firing

T

tshad

In VS 2008, we have an ODS object that is getting created but the events are
not firing. We put break points on them and it never stops. Without this
we can't set up our filters.

Is there something we are missing?

Here is the objects code:

<asp:ObjectDataSource ID="odsEntryList" runat="server"
SelectMethod="GetEntries"
TypeName="PDSATimeTrak.BusinessLayer.TimesheetEntry"
onobjectcreated="odsEntryList_ObjectCreated"
onobjectcreating="odsEntryList_ObjectCreating"
onobjectdisposing="odsEntryList_ObjectDisposing" />


protected void odsEntryList_ObjectCreating(object sender,
ObjectDataSourceEventArgs e)
{
string a = string.Empty;
a = "hi";
}

protected void odsEntryList_ObjectCreated(object sender,
ObjectDataSourceEventArgs e)
{
TimesheetEntry te =(TimesheetEntry)(e.ObjectInstance);
string a = string.Empty;
a = "hi";
//te.ConnectionString = conn
//TimesheetEntry.GetEntries(this);
}

Neither the onobjectcreated nor the onobjectcreating is firing.

Thanks,

Tom
 

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,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top