Hidden Form Fields?

Results 1 to 2 of 2

Thread: Hidden Form Fields?

  1. #1
    Join Date
    Dec 1969

    Default Hidden Form Fields?

    What is the equivalent of a hidden form field in .net? Is there another way or better way to pass a hidden field in a form post?

  2. #2
    Join Date
    Dec 1969

    Default RE: Hidden Form Fields?

    Hidden form field is the same:<BR>&#060;input type="hidden" id="SomeID" runat="server"/&#062;<BR><BR>and in code you can say: SomeID.Value = "Some Value"<BR><BR>You can also save some values in the ViewState directly, a la:<BR><BR>ViewState("SomeID") = "Some Value"<BR><BR>and read/access it the same way:<BR>Dim strVar As String = ViewState("SomeID")

Posting Permissions

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