Saving the viewstate of RadControls server-side
|
Article relates to
|
Both classic and ASP.NET AJAX controls
|
|
Created by
|
Hristo Kosev, Telerik
|
|
Last modified by
|
Sebastian, Telerik
|
HOW-TO
Save the viewstate of RadControls server-side
SOLUTION
We use a common approach to store our RadControls ViewState and you shouldn't have any problems storing it on the server (when the EnableViewState property for the page in which the control(s) reside is set to True). Our products can also work with custom ViewStateManager classes - just keep in mind that the .aspx web form in which the control(s) is(are) placed should extend from the BasePage class,
e.g.
public class WebForm1 : BasePage
and you should place the following lines in your web-application Web.config file:
| <appSettings> |
| <add key="ServerSideViewState" value="true" /> |
| </appSettings> |
Attached is a small demo project illustrating this approach.
For additional information concerning the custom viewstate manager usage please review the following online article:
http://aspalliance.com/articleViewer.aspx?aId=72&vId=1&pId
An alternative approach is discussed in this article on the CodeProject site:
http://www.codeproject.com/KB/aspnet/ViewStatePersistance.aspx
Comments
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.