Extract text after rendering on Render

I have a page and I want to insert "Some text" on that page, but right after I receive the form tag.

The protected override Render renders text inside the body tag, but outside the form tag.

Now I have some code that displays: <body> Some text <form> Rest of the page

And I want: <body> <form> Some texts, Rest of the pages

Is there a way that I can display the text immediately after rendering the tag form?

Hope this is clear.
Thanks.

0


a source to share


1 answer


Why not just add the control to the form first?



Page.Form.Controls.AddAt(0, new LiteralControl("Hello world."));

      

+1


a source







All Articles