Hi..
First make the div runat=server.
Private Sub CreateControl()
Dim txt1 As New Textbox
txt1.width="350px"
MyDiv.Controls.Add(txt1)
End Sub
Page_Init() Handles Page.Init
CreateControl()
End Sub
Call the createcontrols sub in page-init so the controls can be registered in the page and also survive during postbacks..