By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

hidden fields

P: n/a
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.
Apr 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
that is asp.net .. this newgroup is for classic asp questions
"HockeyFan" <Ho*******@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.

Apr 14 '06 #2

P: n/a

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

Apr 14 '06 #3

P: n/a
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" <Ho*******@discussions.microsoft.com> a écrit dans le message de
news: E3**********************************@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.

Apr 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.