Skip to main content

Questions tagged [viewstate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
881 views

How to properly use GridView to create items on SharePoint Lists?

I'm trying to transfer values from a GridView web-control I'm using in a webpart into a SharePoint list, but whenever I click "save" the data isn't being kicked into the list. All that happens is a ...
prejt's user avatar
  • 3
3 votes
0 answers
343 views

Viewstate expires after some time for application page in SharePoint 2013?

I have a simple ASP application page added in a SharePoint project just for presentation purposes, so it's ASP web forms page is hosted in SharePoint. HTML: <asp:Content ID="Main" ...
A. Simic's user avatar
1 vote
1 answer
445 views

Ghostable and Unghostable Pages

What are Ghostable and Unghostable Pages? Is there a listof pages which are Ghostable and Unghostable? How would I know whether a page is Ghostable or unghostable? If we just add a document to a ...
Anand's user avatar
  • 1,755
0 votes
1 answer
342 views

ViewState in web part becomes null after some idle time

I am storing some values in ViewState in my WebPart user control in SP2013. After some idle time, say 40 minutes when I try to access those values from ViewState i always get null result. Is it due to ...
Nikhil Chavan's user avatar
1 vote
2 answers
927 views

Sharepoint DateTimeControl hour reset on postback

I have a SharePoint DateTimeControl inside of an UpdatePanel. The issue I am experiencing is that when a postback occurs inside the panel the hour section of the DateTimeControl always gets reset to ...
Bjorn W's user avatar
  • 23
1 vote
1 answer
364 views

enabling viewstate in webparts

I am using viewstate in my webparts ViewState["CurrentPageNo"] = 22; But this is not working on my production environment as enableview state is false in web.config. How can we enable it on ...
Happy's user avatar
  • 513
0 votes
0 answers
697 views

Filtering on managed metadata columns in the insert link from SharePoint view throws invalid viewstate error

I've seen this error before in SharePoint 2010 and now in SharePoint 2013 (w/SP1), and it should be pretty straightforward to reproduce using the following steps: Create a document library Add one or ...
tarjeieo's user avatar
  • 2,538
0 votes
1 answer
2k views

Errors with ViewState Cache and Update Panel

We have an application page that stores some information in the view state, and uses UpdatePanels. We have a rare, intermittent bug that occurs in SharePoint 2013 only whereby sometimes, after a ...
lgaud's user avatar
  • 1,971
0 votes
1 answer
83 views

Web Part not saving content

I developed a Web Part that shows a Modal dialog. An iframe is returned from that dialog and with javascript, pasted into a div on the web part. This is rendered and everything works fine but it does ...
nhenrique's user avatar
  • 313
1 vote
0 answers
225 views

How to create custom property which will not be lost after post back of custom control?

I have a custom control that inherits from PeopleEditor in my WebPart. In the custom control I have a custom property: public string MyProperty { get { ...
alisa's user avatar
  • 333
0 votes
2 answers
9k views

Viewstate to keep data after postback

[Personalizable(PersonalizationScope.Shared)] [WebPartStorage(Storage.Shared)] public List<searchResult> lsQtys { get { List<searchResult> ...
Craig's user avatar
  • 33
1 vote
3 answers
793 views

Is ist possible to share viewstate properties between webparts?

I have a class "Wepart A" and a class "Webpart B" which have some similiarities. So I introduced a BaseWebpart from which A and B inherit. I want to share 2 properties (SortColumn and SortDirection) ...
Tom Bola's user avatar
  • 381
1 vote
3 answers
8k views

Sharepoint 2010 and Saving variables in VIEWSTATE

UPDATE1 I tried with EnableViewState in Page directive: but no avail. End I am running as a usercontrol in sharepoint. (using SmartPart) Everything's fine. Just the Viewstate-Variables! The ...
Nick Kahn's user avatar
  • 531
2 votes
1 answer
251 views

ViewState across servers in a SharePoint Farm

When a new server is added to a farm will SharePoint automatically synchronise the machine key such that view state will work across the farm, or is a manual operation required?
gaotter's user avatar
  • 588