hidden fields

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HockeyFan

    hidden fields

    I know that <input type="hidden" fields are used within a form, but do
    <ASP:HiddenFiel d s have to be in a form to be used?
    I've got a VB-based (codebehind) that catches the click event of a button on
    the page, does some processing, populates the <ASP: hidden fields, and then I
    need to redirect to another page, where I want access to these fields.
    I suspect that these have to be inside a form, but figured I should ask.

    I'd use a Cache or cookies, but this is sensitive information and I'm not
    sure that cookies will be available in all cases. I figure I can use
    HiddenFields unless there's a better way.
  • Kyle Peterson

    #2
    Re: hidden fields

    that is asp.net .. this newgroup is for classic asp questions


    "HockeyFan" <HockeyFan@disc ussions.microso ft.com> wrote in message
    news:E3CAC99E-5703-4F1C-9400-6BB0E31002C6@mi crosoft.com...[color=blue]
    >I know that <input type="hidden" fields are used within a form, but do
    > <ASP:HiddenFiel d s have to be in a form to be used?
    > I've got a VB-based (codebehind) that catches the click event of a button
    > on
    > the page, does some processing, populates the <ASP: hidden fields, and
    > then I
    > need to redirect to another page, where I want access to these fields.
    > I suspect that these have to be inside a form, but figured I should ask.
    >
    > I'd use a Cache or cookies, but this is sensitive information and I'm not
    > sure that cookies will be available in all cases. I figure I can use
    > HiddenFields unless there's a better way.[/color]


    Comment

    • Mike Brind

      #3
      Re: hidden fields


      HockeyFan wrote:[color=blue]
      > I know that <input type="hidden" fields are used within a form, but do
      > <ASP:HiddenFiel d s have to be in a form to be used?
      > I've got a VB-based (codebehind) that catches the click event of a button on
      > the page, does some processing, populates the <ASP: hidden fields, and then I
      > need to redirect to another page, where I want access to these fields.
      > I suspect that these have to be inside a form, but figured I should ask.
      >
      > I'd use a Cache or cookies, but this is sensitive information and I'm not
      > sure that cookies will be available in all cases. I figure I can use
      > HiddenFields unless there's a better way.[/color]

      Basic HTML - hidden fields should never be used for sensitive
      information. Have a look at View Source to see what I mean.

      And my (limited) understanding of asp.net is that the entire page is a
      form, so it doesn't matter where you put form fields on a page.

      If you want some help or pointers on transferring sensitive information
      using dotnet, try the people over at
      microsoft.publi c.dotnet.framew ork.aspnet.

      --
      Mike Brind

      Comment

      • Patrice

        #4
        Re: hidden fields

        AFAIK HTML fields should always be inside a form (they might be not posted
        if outside).

        What are you trying to do ? Is this info used client side ? It's likely
        better to keep this server side as this is sensitive data...

        --
        Patrice

        "HockeyFan" <HockeyFan@disc ussions.microso ft.com> a écrit dans le message de
        news: E3CAC99E-5703-4F1C-9400-6BB0E31002C6@mi crosoft.com...[color=blue]
        >I know that <input type="hidden" fields are used within a form, but do
        > <ASP:HiddenFiel d s have to be in a form to be used?
        > I've got a VB-based (codebehind) that catches the click event of a button
        > on
        > the page, does some processing, populates the <ASP: hidden fields, and
        > then I
        > need to redirect to another page, where I want access to these fields.
        > I suspect that these have to be inside a form, but figured I should ask.
        >
        > I'd use a Cache or cookies, but this is sensitive information and I'm not
        > sure that cookies will be available in all cases. I figure I can use
        > HiddenFields unless there's a better way.[/color]


        Comment

        Working...