|
Home > Archive > IIS ASP > April 2006 > hidden fields
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| HockeyFan 2006-04-27, 7:51 am |
| I know that <input type="hidden" fields are used within a form, but do
<ASP:HiddenField 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 2006-04-27, 7:51 am |
| that is asp.net .. this newgroup is for classic asp questions
"HockeyFan" <HockeyFan@discussions.microsoft.com> wrote in message
news:E3CAC99E-5703-4F1C-9400-6BB0E31002C6@microsoft.com...
>I know that <input type="hidden" fields are used within a form, but do
> <ASP:HiddenField 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.
| |
| Mike Brind 2006-04-27, 7:51 am |
|
HockeyFan wrote:
> I know that <input type="hidden" fields are used within a form, but do
> <ASP:HiddenField 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.
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.public.dotnet.framework.aspnet.
--
Mike Brind
| |
| Patrice 2006-04-27, 7:51 am |
| 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@discussions.microsoft.com> a écrit dans le message de
news: E3CAC99E-5703-4F1C-9400-6BB0E31002C6@microsoft.com...
>I know that <input type="hidden" fields are used within a form, but do
> <ASP:HiddenField 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.
|
|
|
|
|