score:2
firstly, don't store passwords! ever!
from the other question you just asked, you know how to get the data from the xml.
if you need to persist data across multiple executions of an app then you should save this to isolatedstorage. for your specific scenario i'd recommend using isolatedstoragesettings.
var settings = isolatedstoragesettings.applicationsettings;
settings.add("id", myid);
then access it via
if (settings.contains("id"))
{
string stored_value = settings.["id"].tostring();
}
score:0
we recently updated the windows phone developer documentation with guidance specifically related to using web services in windows phone apps. there is also a topic about best practices for security. i hope the following link helps:
http://msdn.microsoft.com/en-us/library/gg521151(v=vs.92).aspx
score:1
it is wise to be cautious with potentially senstive data such as username/passwords and i'm pleased to see the documentation is now alerting developers to this.
security and convenience are requirements to be weighed in the context of the sensitivity of the data that is being protected.
just making it a bit more difficult to obtain a person's credentials may be sufficient in some applications to deter people from making the effort to bypass security measures, particularly if the value of the data or services being protected is low. in this case, offering the convenience of saving credentials for your user may be appreciated.
on the other hand, the data/services being protected may be of high sensitivity/value and concerns of the users phone being physicaly compromised or compromised by unsecure software not obtained via the marketplace may be genuine.
if you are in any doubt, and want to defer the decision to your user, you can always do this by alerting them to the risks and offering them the choice - as browsers and websites do with offering to save your credentials.
either way, this is for you to evaluate in the context of your app.
with regard to where data can be stored, isolated storage is the place to look.
as matt has suggested, isolated storage settings is an approachable place to start, with some of the lifting done for you.
alternatively you may like to just write a file in a format of your own choosing to isolated storage. documentation for all of this is available here.
isolated storage for windows phone
isolated storage overview for windows phone
Source: stackoverflow.com
Related Query
- WP7 Getting and storing data from an xml web service for use across the project
- WP7 Return the last 7 days of data from an xml web service
- Can I use a LINQ IEnumerable result as the data source for a Gtk.TreeView?
- Getting Sum of Multiple Columns and summing up values for the same id from a list
- Getting data from XML via LINQ and displaying it on a View?
- Use where condition for retrieving the xml data with C#
- How to execute a linq query for each item in a list , use it in the where clause and return a collection from the result of each query?
- How to use my view model class and passing data from view model to View on the page?
- how to fetch data from database using linq query for relationship 1:N and N:N (between 3 entity) in asp.net mvc EF code first?
- How to retrieve data for two different portions of a single web page using LINQ from the same database table?
- How to select one column from datagrid and add data for the selected column from field text?
- Grabbing data from join table, and still grab the data if there is no results for join table
- Getting data from comboBox and use it to get data in onother combobox
- LINQ: Getting Keys for a given list of Values from Dictionary and vice versa
- I am wondering about the state of connection and impact on code performance by 'yield' while iterating over data reader object
- Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
- Can I take the first n elements from an enumeration, and then still use the rest of the enumeration?
- How much is too much data for and XML file, and what are some file based database alternatives?
- How does linq actually execute the code to retrieve data from the data source?
- .SelectMany() and getting data from more than one related table
- Getting distinct and ordered members from a list of strings - linq or hashset for unique which one is faster / better suited
- Linq query, how to check for a null value and use the value 0 in place of a null?
- The given value of type String from the data source cannot be converted to type int of the specified target column
- Most efficient collection for storing data from LINQ to Entities?
- How to bind data from mutiple tables to datagridview using Entity Framework and use CRUD operations?
- Is a full list returned first and then filtered when using linq to sql to filter data from a database or just the filtered list?
- How can I use Linq to build a c# object from xml where an element has zero or more elements of the same type?
- Combining two datatable and getting the amount from second table by using linq
- How can I use LINQ and C# to find the oldest date from 3 different files?
- Retrieve the node values from XML file in LINQ and C#
More Query from same tag
- LINQ to dictionary with multiple keys for a single value
- How to use predicate builder with linq2sql and OR operator
- Operations over dictionary-key without System.Collections.Generic.KeyNotFoundException
- Is this the correct way to return this data using LINQ
- Linq to 3 tables with no foreign keys
- Can I prevent a LINQ DataContext from using a transaction when a TransactionScope is present?
- Do LINQ operations return collections with the same indexes as collection being operated on?
- LINQ make All method async
- How to select a record in a arraylist vb.net linq
- Migrate property of objects to one list object
- linq to sql, why to use it in MVC instead of traditional queries?
- Can this linq statement be refactored to return an IQueryable instead?
- C# collection of two points doesn't return any results
- Linq and C#, Skipping records, casting error
- Linq query to join two tables and return object from first table - PagedList used
- Linq eager load chain entities
- Looping through a List<T> in batches while ensuring items per batch are unique
- The type arguments for method Queryable.Select cannot be inferred from the usage
- Binding Grid to a Linq Datasource from Winforms (.net)
- Left join with grouping and ordering
- MVC SqlQuery and a 2nd sort
- L2S :Convert Sql query to Linq
- Performance of Linq on entity framework vs SQL stored procedure
- Mapping Expressions in Linq
- How to remove redundant execution paths in a concatenated linq/lambda expression
- Difficult Entity Framework Query
- Linq in C# using IEnumerable
- How to get the value from a XML Document
- C# Visitor pattern Expressions to build result Unit of measure
- Get items from input list that do not exist in the database using EF Core 2.1