Dim loHiddenField As System.Web.UI.WebControls.HiddenField = New System.Web.UI.WebControls.HiddenField Dim loHtmlForm As System.Web.UI.HtmlControls.HtmlForm = New System.Web.UI.HtmlControls.HtmlForm ' Try to find the Form control loHtmlForm = oPage.FindControl("Form1") ' If we have a form If Not loHtmlForm Is Nothing Then loHiddenField.ID = tcName loHiddenField.Value = tcValue toForm.Controls.Add(loHiddenField) End IfIn this example, which you might have to adjust a few things, I locate the form first. All my forms are named Form1. But, that can be parameterized. If it exists, I create a hidden control, which is INPUT Type=Hidden. I assign its ID and its value. Then, I add it right after the Form. Which is what you are looking for I think. This is VB.NET but that should give you an idea on how to add a control right after another one.