Yes, that's one way. The other is to use Page.RegisterHiddenField.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> What is the best/recommended way to add a hidden input control to a
> webform within Visual Studio? I'm using vb.net and code behind
> (probably implied with Visual Studio).
>
> What I did was to add the following on the .aspx page:
>
> <input id="CurrentStep" type="hidden" value="" runat="server"
> NAME="CurrentStep">
>
> And then I added this in the Web Form Designer Generated Code Section:
>
> Protected WithEvents CurrentStep As
> System.Web.UI.HtmlControls.HtmlInputHidden
>
> Am I missing something? Is there a better way to add that type of
> control?
>
> Thanks!
>