So early this past week I needed to send part of a page within the body of an email to our management team when the form was submitted. That turned out great and worked as they expected and wanted. (here is that post: http://forums.asp.net/t/1997767.aspx?How+to+send+part+of+a+page+form+in+the+body+of+email+upon+submission )
Now they wanted to do the same thing on a few other forms within the site. Well figuring that it was pretty straight forward, I copied the logic into a test page and ran into error when it gets to the .RenderControl line.
The error I get is this:
Control 'MainContent_txtQty1' of type 'TextBox' must be placed inside a form tag with runat=server.
On the page that works, this is the code: Go to the complete details ...