Hi Andrew,
Are you binding the ObjectDataSource to the FormView via DataSourceID
property? According to ASP.NET Page Life Cycle Overview
(
http://msdn2.microsoft.com/en-us/library/ms178472.aspx), during PreRender
event, each data bound control whose DataSourceID property is set calls its
DataBind method.
I think you might be able to create a private member variable in the
UserControl that contains the FormView to act as a flag: it's only set
after the ObjectDataSource's SelectMethod is called; then you check for
this flag in DataBound event.
For a (user) control, it's recommended to not to rely on the client (it's
the Page here). I think to notify the user control that something has
happened in the parent page, you call a public method or set a property in
the user control.
Anyway, would you please post more code if above suggestion doesn't apply
for your scenario or the issue is still not solved? Thanks.
Regards,
Walter Wang (, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.