R
Rory
I am creating a composite control that contains an iframe.
I am creating this iframe in the 'CreateChildControls()'
method by adding a literal control with its definition. I
also have a hidden field (named using mybase.ID), which i
used to populate with the controls 'Text' property.
The problem I am having is when I first enter some content
into the iframe and then trigger postback, it seems to
save the content fine (i write the Text property value in
the containing webform). However, the iframes content is
blank. I then re-enter more content and trigger postback a
second time. This time, the old content is populated in
the iframe, and the new content I just entered is being
saved (this is what appears when I write out the value of
Text in the containng webform). I can keep triggering
postback and these two entered values keep swapping.
Does anyone know what is happening here?
Thanks
I am creating this iframe in the 'CreateChildControls()'
method by adding a literal control with its definition. I
also have a hidden field (named using mybase.ID), which i
used to populate with the controls 'Text' property.
The problem I am having is when I first enter some content
into the iframe and then trigger postback, it seems to
save the content fine (i write the Text property value in
the containing webform). However, the iframes content is
blank. I then re-enter more content and trigger postback a
second time. This time, the old content is populated in
the iframe, and the new content I just entered is being
saved (this is what appears when I write out the value of
Text in the containng webform). I can keep triggering
postback and these two entered values keep swapping.
Does anyone know what is happening here?
Thanks