Imagine an ASP.NET website which displays stock prices when a user logs in. Can the list of stock ticker symbols be stored in an ASP.NET profile? I only see how to add strings, etc., and not collections like Lists or arrays.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To avoid over-engineering, for this particular case you could just do
"MSFT|AAPL|ETC"andstring.Split('|')the value.string.Join("|", values)to store.If you do run into a situation where you need an object graph that’s actually complex, you can do:
The only requirement here being that the object specified in “type” must be XML serializable.