viewstate?

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

for my <input type="hidden" name="__VIEWSTATE"

on output forms... the value of the __VIEWSTATE is over 10 pages long! it
makes forms load so slow, why is it that long and what can i do about it?!
thanks!
 
you are probably using grids with viewstate on. not pratical for internet
sites, you should turn viewstate off on the grids. this will require a bit
of rewritting to get it to work. ms has some articles on this.

-- bruce (sqlwork.com)
 
Hi Brian,

AS for the large Viewstate problem you met, I think Bruce's suggestions are
informative and reasonable. Generally the Page's ViewState will contains
all the controls' viewstate on the page. And most control only perisist
their particular display settings(properties) in ViewState. However, the
ASP.NET Template dataBinding controls such as DataGrid, DataList.....
will store all the binded datas(rows ) into the ViewState, that means if
the datagrid contains lots of rows of data, the ViewState will also
increase to a very large size. Here are some tech articles discussing on
the ASP.NET's ViewState and some have mentioned the performance concerns:

#Understanding ASP.NET View State
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html
/viewstate.asp

#Taking a Bite Out of ASP.NET ViewState
http://msdn.microsoft.com/library/en-us/dnaspnet/html/asp11222001.asp?frame=
true

# Improving ASP.NET Performance
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
scalenetchapt06.asp

Hope helps. Thanks.


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Hi Brian,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top