Questions tagged [page-state]

13 questions
8
votes
2 answers

ArgumentNullException on changing frame

So I'm trying to change frames in a windows 8 app. I tried following the tutorial at this page, but I keep getting the same error. I'm getting an ArgumentNullException on the line: frameState[_pageKey] = pageState; in the LayoutAwarePage.cs…
Loyalar
  • 2,131
  • 4
  • 24
  • 44
4
votes
2 answers

How to extend a serializable class so it can still be serialized?

I have a class like this that I want to save in ViewState for an asp.net UserControl. It basically extends a generic list with a few methods but also adds some properties, e.g. public class MyListClass: List { public string ExtraData; …
Jamie Treworgy
  • 23,934
  • 8
  • 76
  • 119
1
vote
2 answers

what is a page state? and what and where is outputcache directive trying to save?

I observed that there is savepagestatetopersistencemedium method, and we can override and implement them to save them to cache or session or whatever, so what is a page state? And I have no idea what the outputcache directive to trying to save, the…
appenthused
  • 173
  • 1
  • 10
1
vote
0 answers

Clear PageStorageKey when app back to foreground in Flutter

I have a PageView which contain some CustomScrollView. I'm using PageStoreKey to keep the scroll position of CustomScrollView. I want to reset all scroll position to 0 when my app went to the next day. Does have any ways to clear the PageStoreKey of…
Trần Đức Tâm
  • 4,037
  • 3
  • 30
  • 58
1
vote
1 answer

Figuring out Page State with Cassandra GOCQL Driver (Golang)

I've been trying to wrap my head around how paging in Apache Cassandra with the driver functions in GOlang. I have the following code for fetching rows /// Assume all other prerequisites. session, _ :=…
GhostRavenstorm
  • 634
  • 3
  • 9
  • 29
0
votes
2 answers

How to implement a State Pattern for Blazor pages using multiple components to build a page?

I have a Blazor page that utilizes multiple components within it - how can I implement a State pattern (ideally per-page) that would be able to handle the current state of a page? Currently I have all of the state and state-manipulation being done…
GrowingCode247
  • 534
  • 1
  • 3
  • 15
0
votes
2 answers

ASP.NET: How to persist Page State accross Pages?

I need a way to save and load the Page State in a persistent manner (Session). The Project i need this for is an Intranet Web Application which has several Configuration Pages and some of them need a Confirmation if they are about to be saved. The…
haze4real
  • 728
  • 1
  • 9
  • 19
0
votes
1 answer

Page State in Windows Phone 7 applications - do I need to save it?

In the following blog post the author describes the need to store page state, e.g. the text within a TextBox control, in the Page State dictionary so that it is restored when navigating between…
ColinE
  • 68,894
  • 15
  • 164
  • 232
0
votes
3 answers

How to show a notification to user when user moves to another page without saving data

I have a asp.net page for data entry, I want to show a notification message to user when user moves out from the page without doing the Save process. How I can achieve this functionality in client side? Edit : I don't want to show the message when…
Able Alias
  • 3,824
  • 11
  • 58
  • 87
0
votes
1 answer

Save complex page state with jQuery cookie

I have a page with a custom treeview. When a node is expanded, its child nodes are loaded via jQuery Ajax calls. Now, I would like to save the current state of the treeview so that when the user leaves and returns to the page, the previously…
Christophe
  • 354
  • 3
  • 16
0
votes
1 answer

ASP.NET PageViewState Session State Persister

This is what I did Created a new folder under Corelibrary. Named it “Adapters” Under “Adapters”, created a new class file. Named the class file “PageStateAdapter.cs” Extend from PageAdapter class in “PageStateAdapter.cs” Add a override for…
vikramjb
  • 1,365
  • 3
  • 25
  • 50
0
votes
2 answers

Browser back button page state on a custom button click

I have two pages. on the first page user select some filters and press search button then user navigates to the second page. On the second page user will see a grid and he will perform some tasks there. Now the user needs to go back to the first…
chamara
  • 12,649
  • 32
  • 134
  • 210
-1
votes
1 answer

How to achieve system page state cache (when I redirect to another page and return to this page again, all data is reserved)

In Angularjs, it will refresh the page each time I come into a new page. Now in Page1, I have already opened a modal dialog and written some texts in it, then I click a button it redirect to Page2. There's a link now in the header like : Page1 ->…
Ryan
  • 19,118
  • 10
  • 37
  • 53