473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

length of input type hidden

I wrote a simple testprogramm
which renders a hidden input field.

the value of this field is dynamically
generated and filled with

100000 "z"'s --> "zzzzzzzzzzzzzzzzzzz..." and so on.

if i call this page in IE and view the html source
there are the 100000 z's

if i view the source in Opera or Netscape there are
only about 27000 z's

it seems that the rest is truncated but this is not
a limitation of opera or netscape because if i
do the same with php the complete string is rendered.

I use VB.NET and the problem is, that the viewstate
gets larger than 27000 chars and I get one exception
after the other.

can anybody verify this?

--
best regards

Michael
Nov 18 '05 #1
3 4200
I am using the treeview from the internet explorer web controls I
additionally
installed.

This treeview get filled with data from different tables and is rendered
to each browser correctly but if i click a node to expand it i get an
exception that the viewstate is corrupted. I don't get this exception
in IE but in Opera and Netscape.

And the viewstate has about 33000 characters in IE and 27000 in Opera
and Netscape and therefore the treeview isn't working in Opera and
Netscape.

So how can the viewstate size be shrinked in combination with a large
treeview?
This is a wonderful hypothetical, but I cannot see a reason to have a
27000
character hidden field when it is much better to persist the information
when
it gets that large.

I am not sure on the ViewState question, but ViewState is designed to
hold
values for your form in a hashed way. There are very few cases where a
normal
form would require as large a ViewState as you are suggesting. If you
find
that you are creating that large a value, a rearchitecture is in order
IMO.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Michael Singer" wrote:
I wrote a simple testprogramm
which renders a hidden input field.

the value of this field is dynamically
generated and filled with

100000 "z"'s --> "zzzzzzzzzzzzzzzzzzz..." and so on.

if i call this page in IE and view the html source
there are the 100000 z's

if i view the source in Opera or Netscape there are
only about 27000 z's

it seems that the rest is truncated but this is not
a limitation of opera or netscape because if i
do the same with php the complete string is rendered.

I use VB.NET and the problem is, that the viewstate
gets larger than 27000 chars and I get one exception
after the other.

can anybody verify this?

--
best regards

Michael


Nov 18 '05 #2
That might have something to do with the reason why they are named "Internet
Explorer" controls. Microsoft has gone to great lengths to let people know
that these controls are not necessarily suitable for other browsers.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Michael Singer" <mi************@campus02.at> wrote in message
news:op**************@mikenotebook.fh...
I am using the treeview from the internet explorer web controls I
additionally
installed.

This treeview get filled with data from different tables and is rendered
to each browser correctly but if i click a node to expand it i get an
exception that the viewstate is corrupted. I don't get this exception
in IE but in Opera and Netscape.

And the viewstate has about 33000 characters in IE and 27000 in Opera
and Netscape and therefore the treeview isn't working in Opera and
Netscape.

So how can the viewstate size be shrinked in combination with a large
treeview?
This is a wonderful hypothetical, but I cannot see a reason to have a
27000
character hidden field when it is much better to persist the information
when
it gets that large.

I am not sure on the ViewState question, but ViewState is designed to
hold
values for your form in a hashed way. There are very few cases where a
normal
form would require as large a ViewState as you are suggesting. If you
find
that you are creating that large a value, a rearchitecture is in order
IMO.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Michael Singer" wrote:
I wrote a simple testprogramm
which renders a hidden input field.

the value of this field is dynamically
generated and filled with

100000 "z"'s --> "zzzzzzzzzzzzzzzzzzz..." and so on.

if i call this page in IE and view the html source
there are the 100000 z's

if i view the source in Opera or Netscape there are
only about 27000 z's

it seems that the rest is truncated but this is not
a limitation of opera or netscape because if i
do the same with php the complete string is rendered.

I use VB.NET and the problem is, that the viewstate
gets larger than 27000 chars and I get one exception
after the other.

can anybody verify this?

--
best regards

Michael

Nov 18 '05 #3
I'm told that Infragistics has cross-browser compatible controls in a
library that they sell, and that this library includes a treeview control
You might want to take a look at that.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Michael Singer" <mi************@campus02.at> wrote in message
news:op**************@mikenotebook.fh...
I am using the treeview from the internet explorer web controls I
additionally
installed.

This treeview get filled with data from different tables and is rendered
to each browser correctly but if i click a node to expand it i get an
exception that the viewstate is corrupted. I don't get this exception
in IE but in Opera and Netscape.

And the viewstate has about 33000 characters in IE and 27000 in Opera
and Netscape and therefore the treeview isn't working in Opera and
Netscape.

So how can the viewstate size be shrinked in combination with a large
treeview?
This is a wonderful hypothetical, but I cannot see a reason to have a
27000
character hidden field when it is much better to persist the information
when
it gets that large.

I am not sure on the ViewState question, but ViewState is designed to
hold
values for your form in a hashed way. There are very few cases where a
normal
form would require as large a ViewState as you are suggesting. If you
find
that you are creating that large a value, a rearchitecture is in order
IMO.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Michael Singer" wrote:
I wrote a simple testprogramm
which renders a hidden input field.

the value of this field is dynamically
generated and filled with

100000 "z"'s --> "zzzzzzzzzzzzzzzzzzz..." and so on.

if i call this page in IE and view the html source
there are the 100000 z's

if i view the source in Opera or Netscape there are
only about 27000 z's

it seems that the rest is truncated but this is not
a limitation of opera or netscape because if i
do the same with php the complete string is rendered.

I use VB.NET and the problem is, that the viewstate
gets larger than 27000 chars and I get one exception
after the other.

can anybody verify this?

--
best regards

Michael

Nov 18 '05 #4

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

Similar topics

7
by: Eduard Dewolf | last post by:
Hi, Im have been changing my site to make it HTML 4.01 compliant As I should, I wrapped all INPUT tags in blocks I wrapped the not visible INPUT type HIDDEN tags in first PRE, later H6 tags...
2
by: Ron Aronica | last post by:
I want to specify the value of an input field using the return from a function. I want to do something this this: <script> function value() { return "the value"; } </script> <form>
11
by: Ray Muforosky | last post by:
I have this: ------------ print "<FORM name=\"form3\" ACTION=\"cmdlog_rep.php\">\n"; print "<TD><INPUT TYPE=\"submit\" VALUE=\"Submit\"></TD>\n"; .. print "<INPUT type=\"HIDDEN\"...
1
by: Steve2007 | last post by:
Hi I have the following form in my html page: <form name="mapserv" method=GET action=""> <input type="hidden" name="timeFiltering"> <input type="hidden" name="filteringType"> <input...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
2
tolkienarda
by: tolkienarda | last post by:
hi all have finnaly figured out how this php script works. i have been trying to modify it for some time but i sturgled because i had no idea what the logic behind it was but finally i figured it...
1
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
3
by: spoonybard | last post by:
Hi Everyone, I have an ASP.Net 2.0 C# web application that requires a user to enter in two sets of numbers. The first number is broken into 4 textboxes and the second number is broken into 2...
5
by: Dave Rado | last post by:
Hi I have been the following code by Freefind to use on my search page: <form action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self"> <input...
1
by: printline | last post by:
Hello All I'm quite new to xml vs. PHP, so i hope someone can help with an issue i have been struggeling with. I have an html form, that when submitted, it should create an xml file, and save...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.