I have variables of session[]
created in my application which I must occupy in the view to show that information that has stored in memory. The question is, how can I read that session [] 'in the view but only a part of the text they contain? Example:
The following created [] 'sings:
Session["varUno"] = "Texto uno";
Session["varDos"] = "Texto dos";
Session["varTres"] = "Texto tres";
I was trying to read them this way:
@Session["varUno"].ToString().Split(' ');
To make it look like this: Text (without text one) but it returns something from System.Net ....
The data comes like this, so they do not tell me and if you better leave only the word Text to create the Session ...