<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTg3MjQ" />

 Hi I am developig a website and when I try to see the page source in the explorer I have houndreds of lines about this:


<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATEFIELDCOUNT" id="__VIEWSTATEFIELDCOUNT" value="697" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTg3MjQ" />
<input type="hidden" name="__VIEWSTATE1" id="__VIEWSTATE1" value="3ODY2MQ9kFgJmD2" />
<input type="hidden" name="__VIEWSTATE2" id="__VIEWSTATE2" value="QWAgIED2QWCAIJD" />
<input type="hidden" name="__VIEWSTATE3" id="__VIEWSTATE3" value="2QWGGYPDxYEHgRU" />
<input type="hidden" name="__VIEWSTATE4" id="__VIEWSTATE4" value="ZXh0BT1Tb3V0aCB" />
<input type="hidden" name="__VIEWSTATE5" id="__VIEWSTATE5" value="BZnJpY2EgbmFtZS" />
<input type="hidden" name="__VIEWSTATE6" id="__VIEWSTATE6" value="BzcGlubmVyIGFuZ" />
<input type="hidden" name="__VIEWSTATE7" id="__VIEWSTATE7" value="CBpbnZpdGUgRW5n" />
<input type="hidden" name="__VIEWSTATE8" id="__VIEWSTATE8" value="bGFuZCB0byBiYXQ" />
<input type="hidden" name="__VIEWSTATE9" id="__VIEWSTATE9" value="gYXQgTG9yZCdzHg" />
<input type="hidden" name="__VIEWSTATE10" id="__VIEWSTATE10" value="tOYXZpZ2F0ZVVyb" />
<input type="hidden" name="__VIEWSTATE11" id="__VIEWSTATE11" value="AVUL25ld3MvQ3Jp" />

 

How can I do not to show all of this? Thanks 

0
miguelangel197
7/10/2008 10:31:10 AM
asp.net.state-management 8807 articles. 0 followers. Follow

3 Replies
1740 Views

Similar Articles

[PageSpeed] 1
Get it on Google Play
Get it on Apple App Store

These are all the internal workings of ASP.NET. It's not something you have any control over. You can turn off ViewState, but if you do that, many controls will stop working like you expect them to.

0
MelvynHarbour
7/10/2008 10:56:59 AM

 But is there another way, because the html code is very large. It would be possible to store in a session state?

0
miguelangel197
7/10/2008 11:40:24 AM

Yes, you can. In cases where the viewstate gets very large, developers overwrite the viewstate mechanism to store it on the server or on a database instead of sending to the client in the html.

 Just google "Storing asp.net viewstate in session" or "storing asp.net viewstate in database" and you should get several results showing you how.


Tarique
0
tarique_s
7/14/2008 4:52:25 AM
Reply:

Similar Artilces:

Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
I keep seeing these "extra" hidden fields in my source ... Does anyone know where/what/why they are being generated ? <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> John W Moon At 10:45 AM 06/21/2001 -0400, Moon, John wrote: >I keep seeing these "extra" hidden fields in my source ... > >Does anyone know where/what/why they are being generated ? > ><INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> > If youre using the CGI.pm module, theres most lik...

Regular Expression to remove "/", "\", "<", ">" and "="
Can anyone please show me the regular expression to reject a string ("<blue", "right>" etc.) which has the following expression in it: "/", "\", "<", ">" and "="  hi, It may Help u.. it is in Class file u may use this expressin in validation controls also. Regex objReg = new Regex(@"^[^,.?/\~|`;:'<>]*$", RegexOptions.Singleline); Regex objReg = new Regex(@"^[^,][^.][^?][^/][^\][^~|][^`][^;][^:][^'][[^<][^>]$", RegexOptions.IgnoreCase);Thanks &...

Re: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
Randal L. Schwartz wrote: : ... : Second might mean something like: : : $foo_length = SOME_LIST # although this can't happen : ========= list : = assigned to : =========== scalar : : See the difference? And the latter can't happen. Sure it can. Well, the list itself doesn't get assigned to the scalar, but an assignment does get made: The last element of SOME_LIST to $foo_length. So my $number_of_pets = ('dog','cat','iguana'); sets $number_of_pets to 'iguana'. -- tdk At 04:2...

RE: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
> >>>>> "Curtis" == Curtis Poe <poec@yahoo.com> writes: > > Curtis> my $foo_count = scalar @{[param('foo')]}; > > That's nice, but I prefer: > > my $foo_count = () = param('foo'); > > Less typing, less work for the machine. Less noise. More magic, > though. Oops, arguable on that. :) > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - Let me guess ... param('foo') is assigned to a list ... the list is assigned to $foo_count in a scalar cont...

RE: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
Here the code (is this what you wanted ?) but from Mel's reply looks like the problem could be the "endform" use strict; use CGI qw(:standard :all *table); use vars qw($dbh $REQUEST) ; # global ! use DBI; use Cwd; my $CGI_HOME=cwd(); # get $home # use lib "/opt/common/html/actual/cgi-bin/Library"; use lib "Library"; require MyConnect; use MyCategories; # # (keywd,value) for estimates are: # FY=30-Jun-YYYY - The fiscal year of the Estimate # ACCT=varchar2(15) - Account to Input/View # CUST_ID=number(10) - C...

RE: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
Yes, I assumed it is trying to help me ... But don't want it's (CGI's) help ... in this case Any one know how to stop it ... I do a $q->new CGI after getting my values from the post ; and yes I use $q->endform; John W Moon -----Original Message----- From: Mel Matsuoka [mailto:mel@hawaiianimage.com] Sent: June 21, 2001 00:53 To: beginners-cgi@perl.org Subject: Re: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ? At 10:45 AM 06/21/2001 -0400, Moon, John wrote: >I keep seeing these...

Re: Extra <INPUT TYPE="hidden" NAME=".cgifields" VALUE="ACTION"> ?
Mel Matsuoka wrote: : >Randal L. Schwartz wrote: : >: ... : >: Second might mean something like: : >: : >: $foo_length = SOME_LIST # although this can't happen : >: ========= list : >: = assigned to : >: =========== scalar : >: : >: See the difference? And the latter can't happen. : > : >Sure it can. Well, the list itself doesn't get assigned to the scalar, : >but an assignment does get made: The last element of SOME_LIST to : >$foo_length. So : > : >my $number_of_pe...

Precedence of "where" ("of", "is", "will")?
Nobody on #perl6 today could answer this one. Is: Str | Int where { $_ } the same as: (Str | Int) where { $_ } or: Str | (Int where { $_ }) ? Followup questions, Mr. President: What kind of operators are "where", "of", "is", and "will"? Is there a reason that S03 doesn't list them? What are their precedence(s)? -- Chip Salzenberg - a.k.a. - <chip@pobox.com> Open Source is not an excuse to write fun code then leave the actual work to others. Chip Salzenberg writes: &...

.ALLCOL("%COLUMN%", " ", ", ", ", ")
Do you know anyway for me to exclude a subset of columns returned by this function. We have two columns (rec_user and rec_datetime) which are in all of our tables, but when generating triggers I want automatically generate a script which does not include those two columns but does include all other columns in that table. Bruce I should add that I am using PD 9.0.0.580. Bruce "Bruce Lamb" <lamb.bruce@mayo.edu> wrote in message news:6HgI315nCHA.155@forums.sybase.com... > Do you know anyway for me to exclude a subset of columns returned by this > function. ...

How can I access < input type="hidden" name="objHidden" id="objHidden" > from a .net server side function
Topic says it all..please help!! Right Click the control in the design view and select run as server control. ...

input type="hidden" name="__VIEWSTATE"
I'm not a programmer and I own and operate a web site. I have this code almost in all my pages: ........................ <body bgcolor="white" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0> <form name="_ctl0" method="post" action="basic.aspx?car=All&amp;manufacturer=Manufacturer &amp;categorytype=Category" id="_ctl0"> <input type="hidden" name="__VIEWSTATE" value="dDwzMTQ5MTE3NDU7dDw7bDxpPDA+Oz47bDx0PDtsPGk8MT47aTwyPjtpPDM+O2k8N D47aTw1PjtpPDY+O2k8Nz47aTw4PjtpPDk+O2k8MT...

postback is deleting contents of <INPUT id="btnUpload" type="button" value="Upload" runat="server">
The <INPUT id="btnUpload" type="button" value="Upload" runat="server"> does not hold its value when there is a postBack to the server. Is there a way around this. Cheers What do you mean? The button text goes blank? Or do you mean it doesn't register it having a value a page reload after it being clicked? BrianBrian"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4). I select the file i wish to upload, i ...

quotes, quotes, quotes...
I am getting this error and I know what is causing it, but I have no idea how to fix it, any help would be great. The script steps through the /var/log/messages file on a linux server and puts The entries into a mysql database. However when it gets to the 'hlt' line in the messages file it just barfs. The single quotes are freaking it out. I know about quotes but not how to use in this situation. Thanks, Paul Error: May 27 17:53:00 localhost kernel: Checking 'hlt' instruction... OK. <----- doesn't like this in the messages file DBD::mysql::st exec...

Problem with this <input type="Submit" name="Action" value="Enter information">
<input type="Submit" name="Action" value="Enter information"> I seem to have problem with my asp page once I changed the value from "Enter Information" to other word such as Submit or Update... etc... Why am I getting this error ? Does changing the value effect the asp page ? You may have some sort of back-end code that might be checking the value of the submit button before sending it for processing... hope this helps.Need ASP.NET web hosting? Private Message me for a free quote....

Web resources about - <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTg3MjQ" /> - asp.net.state-management

Resources last updated: 12/5/2015 1:48:13 AM