G
geronimo
Hi,
I am trying to create a TextBox at runtime, using the following code with a
CodeBehind-File:
Dim txtBox As New System.Web.UI.WebControls.TextBox()
txtBox.ID ="txtTest"
Page.Controls.Add(txtBox)
I am getting an server-error - 'TextBox' has to be used with the FormTag
runat=server. Where can set the FormTag in a CodeBehind-File?
Could anyone help me?
Thank you
Geronimo
I am trying to create a TextBox at runtime, using the following code with a
CodeBehind-File:
Dim txtBox As New System.Web.UI.WebControls.TextBox()
txtBox.ID ="txtTest"
Page.Controls.Add(txtBox)
I am getting an server-error - 'TextBox' has to be used with the FormTag
runat=server. Where can set the FormTag in a CodeBehind-File?
Could anyone help me?
Thank you
Geronimo