473,563 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ 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 --> "zzzzzzzzzzzzzz zzzzz..." 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 4211
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 --> "zzzzzzzzzzzzzz zzzzz..." 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******** ******@mikenote book.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 --> "zzzzzzzzzzzzzz zzzzz..." 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******** ******@mikenote book.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 --> "zzzzzzzzzzzzzz zzzzz..." 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
6739
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 to comply to HTML 4.01, but this changes my layout severly In the upper right corner of http://www.dewolf.net, one can cahnge the language of the...
2
2206
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
1911
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\" name=\"year1\" >\n"; print "<INPUT type=\"TEXT\" name=\"when\" >\n"; print "</FORM>\n";
1
1801
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 type="hidden" name="filteringBox"> <input type="hidden" name="Geofence" value="1|Geofence1|-88.19311|30.52311|-87.91011|30.65221|10|3"> <input type="hidden"...
18
24942
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, that IE7 does not seem to offer any way to control the font size of a text input element.
2
1405
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 out and have made it work, almost. the pourpose is for the script to upload and image into a database overighting an older one. this is just used for...
1
7061
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 action="http://cm1web1/WebSurveyComponents/script/ processform.asp" method="post">
3
2842
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 textboxes. The first number 4 textboxes have their max length property set to: 3, 4, 4, 3. The second number 2 textboxes have their max length property...
5
2249
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 type="hidden" name="id" value=""> <input type="hidden" name="pageid" value="r"> <input type="hidden" name="mode" value="all"> <input type="hidden" name="n"...
1
3092
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 in a certain place on my server. I know that this can be done using php, but i'm not sure how....? Here is my php (which needs to be configured...
0
7664
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...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
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...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
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.