+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / ViewState in EventsView single item

ViewState in EventsView single item

5 posts, 0 answered
  1. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    25 Oct 2010
    Link to this post
    Hi

    We are running standards compliance on a large website, that includes some sitefinity blogs.  We use SortSite to find compliance issues and it has highlighted that all the pages generated by the EventView control for each individual item.  Ie, the pages generated when a user clicks on a "read more..." link and is taken the single item page for a given event.

    I have set EnableViewState to false in the Advanced Tab of the EventView control, and I have disabled ViewState in the page. However, this seems to have no effect.

    Thanks any help

    Andrew
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Oct 2010
    Link to this post
    Hello Andrew,

    EnableViewState is a property that comes from the base class Control. When you set the property to false this reduce the ViewState. You can easily check which by getting the ViewState value from the page source.

    Greetings,
    Ivan Dimitrov
    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
  3. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    25 Oct 2010
    Link to this post
    Ivan

    Thanks your reply.  I think you may have misunderstood the question.

    The following may clarify:

    1.  I have some events that I display in a page using EventsView.

    2.  The EventView control is set up to display the list of events with a summary and then the full details on an autogenerated page.

    3. I have disabled viewstate on the page (Properties Tab).

    4.  I have set EnableViewState to false on the EventView control (advanced tab).

    5.  Despite this, the autogenerated page for each individual event still has a large ViewState.  Is there any way I can disable ViewState in the autogenerated page?

    You can view the event list at:


    By clicking on any of the titles of the events, you can see the autogenerated page with the large ViewState,  For example:


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Oct 2010
    Link to this post
    Hi Andrew,

    You cannot completely disable the viewstate. You can only reduce its size. The hidden ViewState HTML field also contains “Control State”, which is used by server controls.

    Greetings,
    Ivan Dimitrov
    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
  5. Andrew Wrigley
    Andrew Wrigley avatar
    63 posts
    Registered:
    01 Sep 2009
    25 Oct 2010
    Link to this post
    Ivan

    Fine, it just seems as if the individual post page has a large ViewState, whereas the list has a small one.  It is as if the individual pages were not aware of EnableViewState=false setting on the EventView control.

    Thanks
Register for webinar
5 posts, 0 answered