Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

PostBack before ViewState loaded in Browser give incorrect result

Hi All,

I've noticed that if I click a button before the viewstate has been
transferred to the browser, the viewstate information posted back is
none or part of the ViewState.  I verified this using the Fiddler tool
to monitor the requests sent to the server.

This postback causes havoc on the page because the expected data was
missing from the viewstate.  Is there a way to ensure that the
viewstate is loaded at the top of the page?  This would slow down
loading the graphical elements of the site, but would ensure it worked


the __viewstate hidden field is rendered right after the <form> before
other controls. its a good as it gets. your viewstate is probably too large.

if this is a real problem, setup a onsubmit hander and a onload hander
in javascript. have the onload set a variable, the on submit can cancel
the submit if onload has not fired.

-- bruce (sqlwork.com)

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc