You can add controls dynamically to the WebDialogWindow by adding to the ContentPane.Controls collection.
//Create a textbox TextBox tb = new TextBox(); tb.ID = "tb1"; tb.Text = "text"; //Add the textbox to the DialogWindow's ContentPane Control…