Microsoft Content Management Server - Session variables

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2004 > Session variables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Session variables
Jan Lathouwers

2004-04-26, 5:35 am

Hi

How to set and use session variables in mcms with c#? This doesn't seem to work:

Session["taalKeuze"]="English";

if((String)Session["taalKeuze"]=="English")...
Kashan Ahmad

2004-04-26, 9:36 am

Hi
try....

Session["taalKeuze"]="English";

if(Session["taalKeuze"].ToString().Equals("English"))
....
...

regards
Kashan


"Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
news:f20274d3.0404260143.58dec36a@posting.google.com...
> Hi
>
> How to set and use session variables in mcms with c#? This doesn't seem

to work:
>
> Session["taalKeuze"]="English";
>
> if((String)Session["taalKeuze"]=="English")...



Kashan Ahmad

2004-04-26, 9:36 am

Sorry.... I forgot to add...


Session.Add("taalKeuze","");
Session["taalKeuze"]="English";

OR

Session.Add("taalKeuze","English");

if(Session["taalKeuze"].ToString().Equals("English"))....


regards
Kashan



"Kashan Ahmad" <kashan.ahmad@geopaq.com> wrote in message
news:e25IkB5KEHA.3596@TK2MSFTNGP10.phx.gbl...
> Hi
> try....
>
> Session["taalKeuze"]="English";
>
> if(Session["taalKeuze"].ToString().Equals("English"))
> ...
> ..
>
> regards
> Kashan
>
>
> "Jan Lathouwers" <lathouwers.jan@pandora.be> wrote in message
> news:f20274d3.0404260143.58dec36a@posting.google.com...
> to work:
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com