473,238 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

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 8080
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kristofer Liljeblad | last post by:
Hi, I've successfully setup my machine to use: sessionState mode="SQLServer". All is up and running so no problems so far. Because I curious person, I started to play around with the two new...
15
by: judge82 | last post by:
I made sure I closed all the bracket, why do i still get the error. on line 360, 424, 425 and 607 Please help /* * ShopCartServletHW3.java *
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.