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