I have a uc which generates a html
form that should auto-submit when the browser loads the page, so I need to add the form to the page before the </body> tag - outside the asp.net form, id like my
UC to work without having any requirements on its parent page / masterpage.
i have managed to add a literal inside the body tag by calling the following inside CreateChildControls on the parent page
Me.Form.Parent.Controls.AddAt(0, ltl)
however this required the body to have runat="server" and the code to be added to the user control's parent page. ( this also seems to cause the viewstate to be lost after postback)
Is there any way i can append the string to the rendered html inside the
body but outside the <form></form> from within the UC code
Incase it makes a difference the UC is being added dynamically to the page.
...
Go to the complete details ...