Hello,
I turned on Compression using the following in a browser file:
That mostly works fine. However, when I create a page with a RadListView with an EditItemTemplate it throws a security exception. Since it works locally, but not on a shared host I'm assuming this is a medium trust issue.
The code is as follows:
If I remove the EditItemTemplate, it works again. The above is just a simple way to get the error to reproduce, the actual page is more complicated.
So, a few questions:
Is there something I forgot to do on the page itself?
If not, is there a way to make this work under medium trust?
If not, what is another simple method of moving the viewstate off the page with the above working?
Thanks
I turned on Compression using the following in a browser file:
<browsers> <browser refID="Default"> <controlAdapters> <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" /> </controlAdapters> </browser></browsers>That mostly works fine. However, when I create a page with a RadListView with an EditItemTemplate it throws a security exception. Since it works locally, but not on a shared host I'm assuming this is a medium trust issue.
The code is as follows:
<telerik:RadScriptManager ID="MainRadScriptManager" runat="server" EnableCdn="true"></telerik:RadScriptManager><telerik:RadListView ID="TestRadListView" runat="server" DataKeyNames="TestID" DataSourceID="TestLinqDataSource"> <LayoutTemplate> <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder> </LayoutTemplate> <ItemTemplate> <p><%# Eval("Name") %></p> </ItemTemplate> <EditItemTemplate></EditItemTemplate></telerik:RadListView><asp:LinqDataSource ID="TestLinqDataSource" runat="server" ContextTypeName="TestDataContext" TableName="Tests"></asp:LinqDataSource>If I remove the EditItemTemplate, it works again. The above is just a simple way to get the error to reproduce, the actual page is more complicated.
So, a few questions:
Is there something I forgot to do on the page itself?
If not, is there a way to make this work under medium trust?
If not, what is another simple method of moving the viewstate off the page with the above working?
Thanks