Adding a Web User Control to a Web form

jumanji

New Member
I created a web user control, and I am trying to add it to a web form. It works fine until I try to add it to the pages controls collection. I get the following run time error message. <BR> <BR>"Control 'RecipePartPanel1_txtPartTitle' of type 'TextBox' must be placed inside a form tag with runat=server."<BR><BR>I can't put an additional form tag in my user control because there can only be one on a page. Also my user control tag falls inside of the form tag on my web form. If any one has any ideas please help. <BR>Matt<BR>Are you sure the Form's Runat Attribute is set to "Server"? You are correct about not putting a Form Element in the User Control: you just need one on the page that will contain the User Control.Yes, I am positive that the forms Runat attribute is set to "server". I don't know what is going on with it.<BR>Matt<BR>Yes, I am positive that the forms Runat attribute is set to "server". I don't know what is going on with it.<BR>Matt<BR>
 
Back
Top