I’m trying to store an array in a session variable then use it latter like this:
Session["sessionVariable"] = searchString;
Now here I’m trying to store the session variable into a string variable.
String[] sv = Session["sessionVariable"];
When I do I get his error.
Cannot explicitly convert type ‘Object’ to ‘String[]’, An explicit conversion exists, (are you mission a cast?)
I’ve tried various conversions but can’t find the correct one. Can you please help me to find the correct conversion? Thanks.