469,271 Members | 1,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

C# Session("USERID") = "NAME";

How do I add and get session defined variables?

when I do this Session("USERID") = "NAME"; I get
System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected

Thanks,

Bryan
Jul 19 '05 #1
8 7939
www.aspfaq.com/5002

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"TWACS" <ga**************@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
How do I add and get session defined variables?

when I do this Session("USERID") = "NAME"; I get
System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected

Thanks,

Bryan

Jul 19 '05 #2
Oh give me a break. I posted in the DB and was told to come here so I did.
If you can't answer the question leave the post alone

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uW*************@TK2MSFTNGP09.phx.gbl...
www.aspfaq.com/5002

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"TWACS" <ga**************@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
How do I add and get session defined variables?

when I do this Session("USERID") = "NAME"; I get
System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected

Thanks,

Bryan


Jul 19 '05 #3
Your question in DB gave no indication that you were using DotNet, hence the
direction to this group.

Your question was answered - you were directed to the correct group even
though the DotNet reference was in this post.

So, give us a break, and in the future you may wish to include enough, clear
information to help.

Bob Lehmann

"TWACS" <ga**************@hotmail.com> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Oh give me a break. I posted in the DB and was told to come here so I did. If you can't answer the question leave the post alone

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uW*************@TK2MSFTNGP09.phx.gbl...
www.aspfaq.com/5002

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"TWACS" <ga**************@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
How do I add and get session defined variables?

when I do this Session("USERID") = "NAME"; I get
System.Web.UI.Page.Session' denotes a 'property' where a 'method' was
expected

Thanks,

Bryan



Jul 19 '05 #4
Bob, I don't know who you think you are but your head must be up your butt
because if you could not figure out what "Session" means and what product
uses it, then you are a very POOR programmer. Most people have enough brain
and can figure that out.

"Bob Lehmann" <none> wrote in message
news:e9*************@TK2MSFTNGP09.phx.gbl...
Your question in DB gave no indication that you were using DotNet, hence the direction to this group.

Your question was answered - you were directed to the correct group even
though the DotNet reference was in this post.

So, give us a break, and in the future you may wish to include enough, clear information to help.

Bob Lehmann

"TWACS" <ga**************@hotmail.com> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Oh give me a break. I posted in the DB and was told to come here so I

did.
If you can't answer the question leave the post alone

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uW*************@TK2MSFTNGP09.phx.gbl...
www.aspfaq.com/5002

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"TWACS" <ga**************@hotmail.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...
> How do I add and get session defined variables?
>
> when I do this Session("USERID") = "NAME"; I get
> System.Web.UI.Page.Session' denotes a 'property' where a 'method' was > expected
>
>
>
> Thanks,
>
> Bryan
>
>



Jul 19 '05 #5
This is a great attitude for someone who needs help. Do you have any idea
how many different technologies have a concept of "Session"? I guess when
you're on your first day of programming 101 and they threw you into .NET,
probably not...


"TWACS" <ga**************@hotmail.com> wrote in message
news:OM*************@tk2msftngp13.phx.gbl...
Bob, I don't know who you think you are but your head must be up your butt
because if you could not figure out what "Session" means and what product
uses it, then you are a very POOR programmer. Most people have enough brain and can figure that out.

Jul 19 '05 #6
Session is not something new to ASP.net. If you're a new programmer and are
starting out with ASP.net, you may think that, but those of us who have been
doing this for years, i.e. Bob Lehmann, know that the original code you
posted did not imply ASP.net. Lashing out at others here in the communities
will only reduce the amount of support you came here for.

Ray at work

"TWACS" <ga**************@hotmail.com> wrote in message
news:OM*************@tk2msftngp13.phx.gbl...
Bob, I don't know who you think you are but your head must be up your butt
because if you could not figure out what "Session" means and what product
uses it, then you are a very POOR programmer. Most people have enough brain and can figure that out.

"Bob Lehmann" <none> wrote in message
news:e9*************@TK2MSFTNGP09.phx.gbl...
Your question in DB gave no indication that you were using DotNet, hence

the
direction to this group.

Your question was answered - you were directed to the correct group even
though the DotNet reference was in this post.

So, give us a break, and in the future you may wish to include enough,

clear
information to help.

Bob Lehmann

Jul 19 '05 #7
ummm, numbnutz....

Here's a newsflash for you - The concept of a Session exists in more
technologies than the limited realm of your pathetic knowledge.

Good luck getting any help after people are exposed to your attitude.

*PLONK*

Bob Lehmann

"TWACS" <ga**************@hotmail.com> wrote in message
news:OM*************@tk2msftngp13.phx.gbl...
Bob, I don't know who you think you are but your head must be up your butt
because if you could not figure out what "Session" means and what product
uses it, then you are a very POOR programmer. Most people have enough brain and can figure that out.

"Bob Lehmann" <none> wrote in message
news:e9*************@TK2MSFTNGP09.phx.gbl...
Your question in DB gave no indication that you were using DotNet, hence

the
direction to this group.

Your question was answered - you were directed to the correct group even
though the DotNet reference was in this post.

So, give us a break, and in the future you may wish to include enough,

clear
information to help.

Bob Lehmann

"TWACS" <ga**************@hotmail.com> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
Oh give me a break. I posted in the DB and was told to come here so I

did.
If you can't answer the question leave the post alone

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uW*************@TK2MSFTNGP09.phx.gbl...
> www.aspfaq.com/5002
>
> --
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>
>
>
>
> "TWACS" <ga**************@hotmail.com> wrote in message
> news:uN**************@TK2MSFTNGP09.phx.gbl...
> > How do I add and get session defined variables?
> >
> > when I do this Session("USERID") = "NAME"; I get
> > System.Web.UI.Page.Session' denotes a 'property' where a 'method' was > > expected
> >
> >
> >
> > Thanks,
> >
> > Bryan
> >
> >
>
>



Jul 19 '05 #8
Gav
try Session["USERID"] = "NAME"l
Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.