Old style Forms and asp.net

Results 1 to 2 of 2

Thread: Old style Forms and asp.net

  1. #1
    Join Date
    Dec 1969

    Default Old style Forms and asp.net

    Hi guys, how do you put hidden input types in the new asp.net web forms. Should i just create and old style form <form></form> and just put one hidden input type in there or is there a way to put an input type in a web form.

  2. #2
    Join Date
    Dec 1969
    Indianapolis, IN

    Default RE: Old style Forms and asp.net

    You can either do it that way, or you could have:<BR>&#060;asp:Textbox runat="server" ID="hidfield1"&#062;&#060;/asp:Textbox&#062;<BR><BR>Then set the value in the page_load() sub. The above will basically become a hidden input. I combine both depending on whether I want to keep the field visible to the client or not. If this is going to be for posting to other pages or client-side subs and functions, I suggest doing it the old way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts