Questions tagged [viewstate]

ViewState is the mechanism that allows form field values to be preserved across page postbacks.

View state refers to the page-level state management mechanism utilized by component based frameworks, such as Microsoft and , Oracle and so on.

References

1589 questions
13
votes
1 answer

Testing JSF application with JMeter - ViewState issue

All day I try to run JMeter tests of my JSF application. I am aware of ViewState, but it seemed to be quite simple issue. I prepared Regular Expression Extractor: Reference Name: jsfViewState Regular expression: id=\"javax.faces.ViewState\"…
LancerX
  • 1,211
  • 7
  • 23
  • 40
12
votes
2 answers

Best practice regarding StateManager in Ember.js

The StateManager in Ember.js isn't that well documented yet, so I've got some questions regarding its usage. Should one strive to call .goToState only from within the state manager? I sometimes find myself mirroring methods in the state manager on…
12
votes
2 answers

How to disable View State MAC globally?

I'm tired of including EnableViewStateMac="false" in every page. How to do that globally?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
11
votes
2 answers

How to disable ViewState?

I'm coming into Java world from MS and ASP.NET and looking for the similar to ASP.NET component-based HTML framework in Java. After reviewing tons of links in internet it looks like JSF2 (with facelets) is best match (is this true by the way? or…
Xtra Coder
  • 3,389
  • 4
  • 40
  • 59
11
votes
2 answers

Validation of viewstate MAC failed

Possible Duplicate: Setting ViewStateUserKey gives me a “Validation of viewstate MAC failed” error I have applied the solutions of the posts on StackOverflow but they did not work out for my problem. The details of the problem is: Validation of…
olidev
  • 20,058
  • 51
  • 133
  • 197
11
votes
7 answers

Invalid viewstate for ScriptResource.axd?

The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the “d” parameter that is passed is some how corrupted and I…
JamTech
  • 161
  • 1
  • 9
11
votes
1 answer

How to access ViewState variable in Client side Javascript or JQuery

Is this possible to access ViewState variable at Client Side javascript or jquery functions in asp.net web application? If yes then how?
user3853187
  • 127
  • 1
  • 1
  • 5
11
votes
2 answers

ViewState Chunking in asp.net

I keep on hearing this words "Viewstate Chunking". What is Viewstate Chunking? And how it is working for ASP.NET pages?
Sujit
  • 3,677
  • 9
  • 41
  • 50
10
votes
4 answers

The state information is invalid for this page and might be corrupted. (Only in IE)

Can anybody help me out with this exception. I have tried couple of fixes but nothing worked. I am getting this exception only in IE(7, 8 and 9). When i load the page first time, it brings up a dropdown. where i select a specific vendor and it…
Tauseef
  • 424
  • 2
  • 4
  • 16
10
votes
15 answers

Moving ViewState out of the page?

We are trying to lighten our page load as much as possible. Since ViewState can sometimes swell up to 100k of the page, I'd love to completely eliminate it. I'd love to hear some techniques other people have used to move ViewState to a custom…
FlySwat
  • 172,459
  • 74
  • 246
  • 311
10
votes
8 answers

How to remove or compress your asp.net viewstate

Just spent a lot of time exorcising asp.net's large (but understandably useful) viewstate from an app, and i think it's worth sharing how it's done. Basically, i want this question to be open to all solutions for shrinking/compressing/removing…
Chris
  • 39,719
  • 45
  • 189
  • 235
10
votes
4 answers

Keeping ViewState in SessionPageStatePersister

I want to keep viewstate of a specific page in session but following code block does not help me, what might I be missing? So here is the code-behind file content of my page; public partial class ConfigurationEditorWebForm : PageBase { …
yusuf
  • 3,596
  • 5
  • 34
  • 39
10
votes
1 answer

asp.net viewstate encryption

I have a few questions about when and how viewstate is encrypted in asp.net 3.5. For instance, if I have a machinekey entry in my web.config like: decryptionKey="AutoGenerate,IsolateApps" validation="AES" …
xandrr
10
votes
2 answers

What is an optimal value for maxPageStateFieldLength in ASP.NET

In pages that have a viewstate that spans 10-15KB what would be an optimal value for in the web.config in order to reduce the risk of potential truncation leading to viewstate validation errors?
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
10
votes
8 answers

ASP.NET: Compress ViewState

What are the latest and greatest ways to compress the ASP.NET ViewState content? What about the performance of this? Is it worth it to keep the pages quick and minimize data-traffic? How can I make:
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130