I've been using the following method for hidden fields:
I need to post to an external site, so I'm using an HTML submit button. I need to turn off runat="server" or else the page posts back to itself. When I do, the RegisterHiddenField code stops working.
I was told I could use the following to create hidden fields:
<asp:HiddenField ID="HiddenField1" runat="server" Value="foobar" />
But that gives me an "Error Creating Control" message saying HiddenField isn't part of the WebControls assembly, probably because I'm using .NET 1.1, but that's what I'm stuck with because I'm using VS 2003.
Is there another way to create a hidden field to which I can dynamically assign values when the page is loaded?
Thanks folks. This is the last big piece of this application I need to get working.