J
Jim Heavey
Hello, I am trying to add a control to a footer in code, but I get the
following error" "Exception Details: System.Web.HttpException: Control
'txtAddMovieTitle' of type 'TextBox' must be placed inside a form tag with
runat=server."
The code that I am using is as follows:
'* add the Movie Title entry box
Dim txtbox1 As New TextBox()
txtbox1.ID = "txtAddMovieTitle"
txtbox1.Width = New Unit(180)
txtbox1.Font.Size = New FontUnit(FontSize.Small)
e.Item.Cells(2).Controls.Add(txtbox1)
The error message seems to suggest that it is expecting to have a
"Runat="Server", but That property is not avaialble for me to set in code.
Any ideas as to what the problem is an how to correct?
following error" "Exception Details: System.Web.HttpException: Control
'txtAddMovieTitle' of type 'TextBox' must be placed inside a form tag with
runat=server."
The code that I am using is as follows:
'* add the Movie Title entry box
Dim txtbox1 As New TextBox()
txtbox1.ID = "txtAddMovieTitle"
txtbox1.Width = New Unit(180)
txtbox1.Font.Size = New FontUnit(FontSize.Small)
e.Item.Cells(2).Controls.Add(txtbox1)
The error message seems to suggest that it is expecting to have a
"Runat="Server", but That property is not avaialble for me to set in code.
Any ideas as to what the problem is an how to correct?