Content could not be found in the update panel?

I have a table for a contact form, and this table contains another table that is hidden, whether an extended form is required or not, because this control is used across multiple pages. This all worked fine until I installed an update bar around it. I can see the controls in the code behind and the page runs successfully, but when I run it it throws this error:

An object reference is not set on an object instance.

I'm sure I've done this before, but it doesn't work now. Has anyone else ever experienced this?

+1


source to share


1 answer


With the help of an employee, I figured out my problem.

I was referencing the controls when I was setting a property and apparently the properties were being set before all controls were placed on the page, whereas without the refresh panel, the set worked fine.



If anyone else has this problem, all you have to do is set the property on the page, and in page load, set the control properties as you need.

+1


source







All Articles