Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session variables
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01501064
Message ID:
01501090
Vues:
42
>>Hi
>>
>>If I do
>>
>>HttpContext.Current.Session("DefaultCountryList") = country_list
>>
>>and I can see in the debugger that this has been populated with a list of countries
>>
>>then the next asp page does
>>
>>Me.m_Countries = HttpContext.Current.Session("DefaultCountryList")
>>
>>why is HttpContext.Current.Session("DefaultCountryList") empty
>>
>>I assumed that it would remain populated .
>>
>>Am I wrong.
>>
>>Thanks
>>
>>Nick
>
>If your country_list is something other than a string, you'll need to cast it to the correct type or object when you retrieve it from Session.

Its a comma seperated string

Whats weird is there are three strings

Session("DefaultCountryList") = country_list
Session("DefaultModelList") = model_list
Session("DefaultOperatorList") = operator_list

Country and Model are getting set to space and Operator to NULL.

/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform