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
0
votes
1 answer

Cannot store an object in a webcontrol when another webcontrol is executed

I'm using two web controls. Web control A includes webcontrol B. When webcontrol A is called, it automatically calls webcontrolB. WebcontrolB passes a value to the method Modify() of webcontrolA. I would like to store an object, and I do it using…
Camilla
  • 949
  • 2
  • 14
  • 26
0
votes
1 answer

Why client state saving works faster for single user?

I'm using PrimeFaces 3.4 with MyFaces 2.0.7 on WebSphere 7. I've noticed that saving state to client result in about 2 times faster request processing than server saving state. When client saving state is activated, request takes from 150 to 350m.…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
0
votes
1 answer

How to avoid TextChanged event in ASP.NET

I have a TextBox and a postback Button. So, I need to…
user880321
  • 11
  • 4
0
votes
1 answer

.Net Webform losing data

I am having problems getting my page to maintain state. View state is enabled by default but everytime I click a button it resets the form. This is the code I have protected void Page_Load(object sender, EventArgs e) { Levels loadGame…
Dah Problum
  • 141
  • 1
  • 2
  • 6
0
votes
2 answers

Why does adding children to composite server control enlarges view state?

I have composite web server control, which at the moment doesn't perform any actions. My aim is to place inside it child controls beginning with checkbox. I try to do it in the following…
Eadel
  • 3,797
  • 6
  • 38
  • 43
0
votes
3 answers

ASP.NET: JavaScript modifying the value of a HiddenField before submitting

I have looked at similar questions on Stack Overflow but haven't been able to find the solution to this particular problem. I have a simple (not really, but let's pretend) ASP.NET page with an update panel inside it. In this update panel there is a…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
0
votes
1 answer

What causes the error: Viewstate verification failed. Reason: The viewstate supplied failed integrity check?

I'm using a single server to host the application, and between 15h and 00h i had 1200 error of invalid viewstate, what can cause this error? in this specify moment? The Event Viewer do not report anything about, only report the error, any other log…
0
votes
1 answer

Programmatically Assigning PagedControlID to DataPAger

So I am struggling with, what I believe is, more of a Page Lifecycle/ViewState issue. I have a page which hosts three ListView controls. Only one will be visible at any time. I want to use a single DataPager, programmatically assigning the…
Gary O. Stenstrom
  • 2,284
  • 9
  • 38
  • 59
0
votes
1 answer

MasterPage and ViewState (VB.Net)

Ok So i have written methods to override the LoadPageStateFromPersistenceMedium and SavePageStateToPersistenceMedium methods. now the problem is that i am using a masterpage, so how do i maintain using my masterpage and still inherit from…
moonblade
  • 287
  • 1
  • 3
  • 13
0
votes
1 answer

Dynamic Controls, Disabling ViewState and Postbacks

After wasting hours for trying to solve dynamic user control's ViewState being lost I decided to disable ViewState for good. The question is what should I do now? How should I keep my dynamic control's state so that they don't get lost after…
emregon
  • 388
  • 1
  • 7
  • 18
0
votes
3 answers

disabling view state for page is it a good for performance?

Is it better for performance to set EnableViewState to false for all pages and just except some controls that i want to enable their ViewState ?. And how could i do this in web.config file ?.
Wahid Bitar
  • 13,776
  • 13
  • 78
  • 106
0
votes
4 answers

How can I retain a the selection of a DropDownList inside a DataList across a postback?

I'm a beginner at ASP.NET, but I'm trying to fix a bug in an application written by someone else: a drop-down list's selection is not retained across a postback. Here are what I believe are the relevant parts of the code:
Sam
  • 40,644
  • 36
  • 176
  • 219
0
votes
1 answer

Validation of mac failed

I have developed application and its working fine on local with remote DB connection but when its put on live server on every post back event its giving this exception: Server Error in '/openlearningsolutions' Application. Validation of viewstate…
Ehsan Sajjad
  • 61,834
  • 16
  • 105
  • 160
0
votes
4 answers

Viewstate still present in page even though I'm using sqlserver to store the viewstate

I have an ASP.net web app and on my test (database) server I have enabled sqlserver to store the viewstate and when I run the app from visual studio this works fine. However when I try to host the app on the production machine (IIS 6) the viewstate…
JSmyth
  • 11,993
  • 3
  • 23
  • 18
0
votes
2 answers

ASP.NET page life cycle issue. Control ViewState in Page_InitComplete on postback

Our users will: 1.open one tab do some tasks 2.open another tab change customerId and do some other task 3.return to the previous tab and attempt to continue with the old customerId The session state will have changed to include the new customerId.…
user1161495
  • 77
  • 1
  • 2
  • 10
1 2 3
99
100