Questions tagged [viewstate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
665 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 ...
0
votes
1answer
417 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 ...
3
votes
0answers
197 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" ...
1
vote
1answer
322 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 ...
0
votes
1answer
240 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 ...
1
vote
1answer
213 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 ...
0
votes
0answers
636 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 ...
1
vote
3answers
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 ...
0
votes
1answer
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 ...
0
votes
1answer
76 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 ...
1
vote
0answers
221 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 { ...
0
votes
1answer
7k views

Viewstate to keep data after postback

[Personalizable(PersonalizationScope.Shared)] [WebPartStorage(Storage.Shared)] public List<searchResult> lsQtys { get { List<searchResult> ...
1
vote
3answers
757 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) ...
2
votes
1answer
234 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?