This is a migrated thread and some comments may be shown as answers.

Viewstate and usercontrols

1 Answer 38 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 02 Jun 2010, 06:11 AM
Hi All

I am doing as per the link below and also adding the compression below. Now I would expect there to be no viewstate in the page ( as view in firefox and firebug but there seems to be viewstate from the next usercontrol. Any thoughts ?

<

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression" />

 


In my BrowserFile.browser

<

 

browsers>

 

<

 

browser refID="Default">

 

<

 

controlAdapters>

 

<

 

adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />

 

</

 

controlAdapters>

 

</

 

browser>

 

</

 

browsers>

 


http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 07 Jun 2010, 09:17 AM
Hello Paul,

This is due to the fact that __ViewState hidden field contains a bit more complex data than the ViewState of the controls only. There is also ControlState which you can force to be saved in Session by using following setting in your web.config:
<browserCaps>            
 <case>
   RequiresControlStateInSession=true
 </case>
</browserCaps>


Kind regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Paul
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or