Monday, March 26, 2012

Detailsview in UpdatePanel - Master$Content$dvParameters$ctl03 could not be located...

Hi,

I have this weird problem that just started to happen today and I have no idea what caused it:

I have a DetailsView bound to a SqlDataSource in an UpdatePanel. Whenever I edit something in the DetailsView and initiate the async postback, I get:

"An error has occurred because a control with id 'Master$Content$dvParameters$ctl03' could not be located or a different control is assigned the sameID after postback".

Any idea what could be wrong here?

Thanks,

Tom

Ok, I've found out that this happened because I accidentally changed the MasterPage ID in its OnLoad method rather than in the OnInit method

No comments:

Post a Comment