input=hidden - how much data can it store?

J

jason

Can someone tell me if it is possible to store the contents of a TEXT AREA
field in HIDDEN FIELD in another page after the initial form containing the
textarea is submittted....

I need to do this to seamlessly present the submitted data in an attractive
format while hiding his submitted data in the hidden field...but I am not
sure if there are restrictions of eg 255 characters for a hidden field?

Many thanks
Jason
 
P

Phill. W

.. . .
I am not sure if there are restrictions of eg 255 characters for a
hidden field?

None that I know of. A Hidden field should be able to hold just as
much as a textarea. Where you /may/ be having problems is passing
that field back to the server when the page is submitted. Make sure
you use the POST action in the HTML form tag; GET has *severe*
limitations on the amount of data it can submit.

HTH,
Phill W.
 
W

William Morris

Hang on a sec...

The article says that in IIS 4.0 there is a 2Mb limit on POST data, and in
IIS 5.0 the limit is 128k. SURELY that's a typo...it seems strange to me
that we should go up a version and down in size.

- Wm

William Morris
Product Development, Seritas LLC
 
R

Ray at

"It's not a typo. 128k is the default." That's the quote as best as I
remember from a post yesterday or the day before from the person who wrote
the page.

Ray at work
 
A

Aaron Bertrand - MVP

As Ray stated, 128k is the *DEFAULT* ... not the *MAXIMUM*. And reducing
this limit certainly makes sense, when you consider that a good portion of
the buffer overrun and other exploits that took over the Internet in recent
years utilized the high default allowance of POST. Of course you have the
ability to override this and change the default behavior (after all, it is
your network), however it is now a little safer out of the box.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
 
J

jason

Thanks guys - question answered - I just tested and more than capable of
holding current textarea data...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top