If you actually want to make it a hidden form field (versus an invisible text box) you need to use the actual hidden form element. You can still have access to it from the code behind as a System.Web.UI.HtmlControl.HtmlInputHidden:
<input type="hidden" runat="server" id="hidUserName" />
-
Peter