Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 13, 2013 09:22 AM by sameer_khanjit
Contributor
2137 Points
487 Posts
Feb 12, 2013 08:52 AM|LINK
Hi,
Please suggest me. is there any other alternative of viewstate.
We have created one usercontrol for grid with other functionality, and in this control used viewstate.
Initially there are only 10 viewstate but later on requirement increase in this user control and currently total 30 viewstate used in this control.
Due to this page is working slow.
We have used viewstate because on postback we need to maintain values.
Thanks
Subhash
Star
8607 Points
1841 Posts
Feb 12, 2013 09:01 AM|LINK
Take a look at these links, http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx http://mikemason.ca/blog/2008/11/compressing-viewstate/
7060 Points
1378 Posts
Feb 13, 2013 09:22 AM|LINK
Instead of page, you can store view state in session by using
<configuration> <system.web> <browserCaps> <case>RequiresControlStateInSession=true</case> </browserCaps> </system.web> </configuration> OR On page protected override PageStatePersister PageStatePersister { get { return new SessionPageStatePersister(this); } }
subhash.shel...
Contributor
2137 Points
487 Posts
Alternative of Viewstate
Feb 12, 2013 08:52 AM|LINK
Hi,
Please suggest me. is there any other alternative of viewstate.
We have created one usercontrol for grid with other functionality, and in this control used viewstate.
Initially there are only 10 viewstate but later on requirement increase in this user control and currently total 30 viewstate used in this control.
Due to this page is working slow.
We have used viewstate because on postback we need to maintain values.
Thanks
Subhash
Subhash
Please, Mark as Answer if this reply helped you.
christiandev
Star
8607 Points
1841 Posts
Re: Alternative of Viewstate
Feb 12, 2013 09:01 AM|LINK
Take a look at these links,
http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx
http://mikemason.ca/blog/2008/11/compressing-viewstate/
Regards, Christiandev (@chrisdev80), MCPD Web (2 & 4) & MCTS Windows (www.ScoreDonkey.com)
sameer_khanj...
Contributor
7060 Points
1378 Posts
Re: Alternative of Viewstate
Feb 13, 2013 09:22 AM|LINK
Instead of page, you can store view state in session by using
<configuration> <system.web> <browserCaps> <case>RequiresControlStateInSession=true</case> </browserCaps> </system.web> </configuration> OR On page protected override PageStatePersister PageStatePersister { get { return new SessionPageStatePersister(this); } }sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.