J
Jeremy
We've developed various custom controls that use
Page.ClientScript.RegisterExpandoAttribute. This method creates a variable
at the bottom of the page and populates its properties.
My problem is that my control is in the edit template of a grid view. When
initially viewing the page, the control isn't created so
registerexpandoattribute doesn't fire. When I click edit the grid shows the
edit template, causing the control to get created and now
RegisterExpandoAttribute fires, but because it's in the update panel, the
javascript variable and it's properties won't get rendered. How should this
be handled in a control that could be used in an update panel?
Page.ClientScript.RegisterExpandoAttribute. This method creates a variable
at the bottom of the page and populates its properties.
My problem is that my control is in the edit template of a grid view. When
initially viewing the page, the control isn't created so
registerexpandoattribute doesn't fire. When I click edit the grid shows the
edit template, causing the control to get created and now
RegisterExpandoAttribute fires, but because it's in the update panel, the
javascript variable and it's properties won't get rendered. How should this
be handled in a control that could be used in an update panel?