9

How to maintain status in Silverlight?

 3 years ago
source link: https://www.codesd.com/item/how-to-maintain-status-in-silverlight.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to maintain status in Silverlight?

advertisements

When I resize my aspx page hosting the silverlight app, I lose state on all silverlight controls. How do I maintain state on silverlight controls?


I'm not sure what precisely you're doing, but under normal circumstances, you should be able to resize your page without doing a page refresh, and hence, without losing state in your Silverlight controls. Are you doing something that's causing a page refresh? If so, yes, that would cause you to lose state. And if that's the case, and you really do need the round-trip back to the server, then you'll need to store your state somewhere else, for instance, in the ASPX page ViewState, or on a web service, or in your local Silverlight storage. But my guess is that you don't actually need the round-trip to the server, i.e., that it's being caused by a side-effect of something else you're doing. I'd start there.

Related Articles

How to maintain status in a Silverlight 5 application?

I am new to Silverlight. I got a login page and after the user logs in I want to maintain the username and details within the application. How to achieve this?You could use Key/Value Pairs with the IsolatedStorageSettings class

ASP.Net: How to maintain the TextBox state after launch

I would like to know how to maintain the control state that has been modified in Javascript. I have two TextBoxes, one DropDownList and a button (all Runat=Server) in C# ASP.net 2010 Express. First textbox is just accept whatever data user input. Sec

How to maintain a SqlConnection always open

How can maintain a SqlConnection (or using another component) open (connected) always during the execution of my .Net app? I need this because my app needs to detect using this commnad exec sp_who2 how many instances of my app are connected to mydata

How do you activate the Silverlight plugin using Java Selenium?

I am running selenium tests in java on a website that is using Silverlight: One test example is: public double getVideoBitrate() { return Double.valueOf(executeBridgeCommand("Diagnostics.CurrentBitrate").toString()); } the Problem I've run into

How to maintain browser compatibility

This is Srinivas, I am working on ASP.Net Technology. I developed on web site, that's works fine in IE but the design is changing from Mozilla, Safari. How to fix the problem. How to maintain the browser compatibility. I stuck with this problem from

How to use PivotViewer in Silverlight xaml?

How to use PivotViewer in Silverlight xaml? I read http://msdn.microsoft.com/en-us/library/system.windows.controls.pivot.pivotviewer(v=vs.95).aspx and added a reference to the assembly.But I get an error The name "PivotViewer" does not exist in

How to delete a query string or how to maintain a constant URL using URL rewriting

How to maintain constant URL? For example: http:// test23232 /temp/temp.aspx?a=1&b=1 a,b,query string parameter name get differ dynamically page to page(want to use those parameter but not dispaly for users) While redirecting ,whatever the value pres

Using Java and OAuth 2.0 How to maintain the session

How to maintain the session by using OAuth 2.0 ? Like I logged into the Android application , now I want to make user logged in till the user dont logged out manually , so for each span of time and the request the token will change. How should I hand

how to maintain the state of the uibutton in the table view

I have a table view in that I am using a custom cell. I have two buttons on each table view cell named "edit" and "cancel" both have images in cellForRow. What I want that when user clicks on edit button at same time same rows cancel b

How to maintain the consistency of the data on several tables in cassandra?

I'm having trouble figuring out how to maintain attribute updates across multiple tables to ensure data consistency. For example, suppose I have many-to-many relationship between actors and fans. A fan can support many actors, and an actor have many

How to maintain the aspect ratio of a JFrame

I am creating an application that I believe would be better if it could maintain its aspect ratio when expanding\minimizing. I set the minimum size to be 1000x800 and would like it to maintain this ratio of 5:4. Is there a method for that already or

How do I get a Silverlight application to check for an update and ask the user to upgrade?

I have made an out-of-browser silverlight application which I want to automatically update every time there is a new .xap file uploaded to the server. When the user right-clicks the application and clicks on Updates, the default is set to "Check for

How to keep the connection status in Silverlight

How to keep login state in silverlight. Like we store information in Cookies in ASP.net Application.A Silverlight application runs in the client browser and is tied to this specific user. So you can keep this information wherever you like: static fie

How to maintain page status in asp.net when autopostback = true?

How can I get the same scroll position after postback? I am doing code in vb. I have referred and tried everything mentioned in following question link.But nothing worked for me. How to overcome this problem?MaintainScrollPositionOnPostback = "true&q

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK