473,804 Members | 3,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 (not sensitive
from the user, but sensitive otherwise) 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
5 2354
Yes, ASP.NET controls needs to be within the FORM tag, try taking them
outside and see what error message you get !

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
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 (not
sensitive
from the user, but sensitive otherwise) 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
if your page responds with a redirect, you are sending back to the browser
the url to redirect to. your hidden field are of no use, as the browser will
not include them in the redirected request.

-- bruce (sqlwork.com)
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
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 (not
sensitive
from the user, but sensitive otherwise) 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 #3
Well is there another way to get to the next page without a redirect? is
there another way to accomplish what I want without using hidden fields?

"bruce barker (sqlwork.com)" wrote:
if your page responds with a redirect, you are sending back to the browser
the url to redirect to. your hidden field are of no use, as the browser will
not include them in the redirected request.

-- bruce (sqlwork.com)
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
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 (not
sensitive
from the user, but sensitive otherwise) 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 15 '06 #4
You could

1.) Pass parameters in the redirection string to the page you redirect to.
2.) Store the information in session before redirection.
3.) Use a standard field, make it tiny and shove it out of the way, set the
forground and background color to the page background color.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:09******** *************** ***********@mic rosoft.com...
Well is there another way to get to the next page without a redirect? is
there another way to accomplish what I want without using hidden fields?

"bruce barker (sqlwork.com)" wrote:
if your page responds with a redirect, you are sending back to the
browser
the url to redirect to. your hidden field are of no use, as the browser
will
not include them in the redirected request.

-- bruce (sqlwork.com)
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
>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 (not
> sensitive
> from the user, but sensitive otherwise) 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 15 '06 #5
Is there any way to (within a codebehind) to set up a Continue button, that
will change the form ACTION to a new screen, and that the data will be posted
there instead of posted back?

"OHM ( One Handed Man )" wrote:
You could

1.) Pass parameters in the redirection string to the page you redirect to.
2.) Store the information in session before redirection.
3.) Use a standard field, make it tiny and shove it out of the way, set the
forground and background color to the page background color.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:09******** *************** ***********@mic rosoft.com...
Well is there another way to get to the next page without a redirect? is
there another way to accomplish what I want without using hidden fields?

"bruce barker (sqlwork.com)" wrote:
if your page responds with a redirect, you are sending back to the
browser
the url to redirect to. your hidden field are of no use, as the browser
will
not include them in the redirected request.

-- bruce (sqlwork.com)
"HockeyFan" <Ho*******@disc ussions.microso ft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
>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 (not
> sensitive
> from the user, but sensitive otherwise) 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 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7172
by: Ryann | last post by:
Hello. I am creating a form that has 5 steps/pages. Each page contains about 20 fields. But I don't want to write them until they submit on the last page. I figured out that I can use hidden fields to carry the data from the previous forms forward. If should bascially work like this: Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 20 Fields 20 Fields 20 Fields 20 Fields 20 Fields 100 Hidden
1
9596
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the same name "junk_array". My first field of junk_array is a input type=hidden. All the others fields in junk_array that follow are type=text. I can reference this first hidden field in IE with document.form.field.value. In, fact my form works...
1
3498
by: Sam Wuebben | last post by:
I would like to add a few hidden field values to a form as it is submited via JavaScript. I have a static page shopping site that uses MIVA shopping cart. Some of the pages are getting quite large and I want to start reducing the amount of code on each page. Replacing tables with divs are helping some but not as much as I would like. Some pages may have up to 100 different items on it and each one has its own form for submitting the...
1
2223
by: Roy Adams | last post by:
Hi Group I'm trying to write from dynamically created hidden fields to a txt field in the onchange event handler within a select. basically the number for the for loop is generated by a field from a db which creates hidden fields populated by prices once the onchange handler fires it sets the text for the text field price and the hidden field Tsize, but I can't get it to set the txt of oldprice from the hidden field prevprice.
9
4237
by: Randell D. | last post by:
Folks, I have a large amount of values to store (we're talking tens, if not hundreds of bytes). I need this for a client side application - ignore the security consequences for the moment - however my question is, which is more performance effective, or easier on a clients resources? I mean - if I have several <input type=hidden> tags with my values that I can reference, would this have a greater overhead then, for example, having an...
10
3117
by: Mark McLellan | last post by:
Dear all Following the oft-repeated advice here and ciwas I have made my site nearly 4.01 strict (working on it). There are some items on which I would appreciate your advice: 1. Hidden fields http://www.zoo.co.uk/~mmenterprises/contact.htm I am using FormMail from Matt's Script Archive. The W3C validator objected to the hidden fields unless I put, say, P round them. That gave
8
4296
by: John | last post by:
Hello. I have a search form for music albums which among other things I need to search all the song titles of the song. Normally in a search form I would have checkboxes the user can use to select whether or not to search a given field. In this case it is not practical to have 20 checkboxes (each album can have up to 20 song titles).
5
2926
by: NTE | last post by:
Access 2000, My application has a main form that the users interact with. There are 2 hidden fields. When they select "filter by form" from the menu, the hidden fields become visble. Is there a way to prevent this, or to reset them to visible=false?
5
2150
by: Roshawn Dawson | last post by:
Hi, Are hidden fields passed in the querystring when a form is posted back? If they are, must the hidden fields be server controls in order to access them from .net code? Thanks, Roshawn
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.