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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TWACS

    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.P age.Session' denotes a 'property' where a 'method' was
    expected



    Thanks,

    Bryan


  • Aaron Bertrand - MVP

    #2
    Re: C# Session("U SERID") = "NAME&quot ;;



    --
    Aaron Bertrand
    SQL Server MVP
    Please contact this domain's administrator as their DNS Made Easy services have expired.





    "TWACS" <garret_computi ng@hotmail.com> wrote in message
    news:uNMbVJ3NEH A.1420@TK2MSFTN GP09.phx.gbl...[color=blue]
    > How do I add and get session defined variables?
    >
    > when I do this Session("USERID ") = "NAME"; I get
    > System.Web.UI.P age.Session' denotes a 'property' where a 'method' was
    > expected
    >
    >
    >
    > Thanks,
    >
    > Bryan
    >
    >[/color]


    Comment

    • TWACS

      #3
      Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

      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" <aaron@TRASHasp faq.com> wrote in message
      news:uWWsCO3NEH A.736@TK2MSFTNG P09.phx.gbl...[color=blue]
      > www.aspfaq.com/5002
      >
      > --
      > Aaron Bertrand
      > SQL Server MVP
      > http://www.aspfaq.com/
      >
      >
      >
      >
      > "TWACS" <garret_computi ng@hotmail.com> wrote in message
      > news:uNMbVJ3NEH A.1420@TK2MSFTN GP09.phx.gbl...[color=green]
      > > How do I add and get session defined variables?
      > >
      > > when I do this Session("USERID ") = "NAME"; I get
      > > System.Web.UI.P age.Session' denotes a 'property' where a 'method' was
      > > expected
      > >
      > >
      > >
      > > Thanks,
      > >
      > > Bryan
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Bob Lehmann

        #4
        Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

        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" <garret_computi ng@hotmail.com> wrote in message
        news:#mWN6W4NEH A.3052@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Oh give me a break. I posted in the DB and was told to come here so I[/color]
        did.[color=blue]
        > If you can't answer the question leave the post alone
        >
        > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
        > news:uWWsCO3NEH A.736@TK2MSFTNG P09.phx.gbl...[color=green]
        > > www.aspfaq.com/5002
        > >
        > > --
        > > Aaron Bertrand
        > > SQL Server MVP
        > > http://www.aspfaq.com/
        > >
        > >
        > >
        > >
        > > "TWACS" <garret_computi ng@hotmail.com> wrote in message
        > > news:uNMbVJ3NEH A.1420@TK2MSFTN GP09.phx.gbl...[color=darkred]
        > > > How do I add and get session defined variables?
        > > >
        > > > when I do this Session("USERID ") = "NAME"; I get
        > > > System.Web.UI.P age.Session' denotes a 'property' where a 'method' was
        > > > expected
        > > >
        > > >
        > > >
        > > > Thanks,
        > > >
        > > > Bryan
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • TWACS

          #5
          Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

          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:e92cOo4NEH A.664@TK2MSFTNG P09.phx.gbl...[color=blue]
          > Your question in DB gave no indication that you were using DotNet, hence[/color]
          the[color=blue]
          > 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,[/color]
          clear[color=blue]
          > information to help.
          >
          > Bob Lehmann
          >
          > "TWACS" <garret_computi ng@hotmail.com> wrote in message
          > news:#mWN6W4NEH A.3052@TK2MSFTN GP12.phx.gbl...[color=green]
          > > Oh give me a break. I posted in the DB and was told to come here so I[/color]
          > did.[color=green]
          > > If you can't answer the question leave the post alone
          > >
          > > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
          > > news:uWWsCO3NEH A.736@TK2MSFTNG P09.phx.gbl...[color=darkred]
          > > > www.aspfaq.com/5002
          > > >
          > > > --
          > > > Aaron Bertrand
          > > > SQL Server MVP
          > > > http://www.aspfaq.com/
          > > >
          > > >
          > > >
          > > >
          > > > "TWACS" <garret_computi ng@hotmail.com> wrote in message
          > > > news:uNMbVJ3NEH A.1420@TK2MSFTN GP09.phx.gbl...
          > > > > How do I add and get session defined variables?
          > > > >
          > > > > when I do this Session("USERID ") = "NAME"; I get
          > > > > System.Web.UI.P age.Session' denotes a 'property' where a 'method'[/color][/color][/color]
          was[color=blue][color=green][color=darkred]
          > > > > expected
          > > > >
          > > > >
          > > > >
          > > > > Thanks,
          > > > >
          > > > > Bryan
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Aaron Bertrand - MVP

            #6
            Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

            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" <garret_computi ng@hotmail.com> wrote in message
            news:OMKMZ94NEH A.644@tk2msftng p13.phx.gbl...[color=blue]
            > 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[/color]
            brain[color=blue]
            > and can figure that out.
            >[/color]


            Comment

            • Ray at

              #7
              Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

              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" <garret_computi ng@hotmail.com> wrote in message
              news:OMKMZ94NEH A.644@tk2msftng p13.phx.gbl...[color=blue]
              > 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[/color]
              brain[color=blue]
              > and can figure that out.
              >
              > "Bob Lehmann" <none> wrote in message
              > news:e92cOo4NEH A.664@TK2MSFTNG P09.phx.gbl...[color=green]
              > > Your question in DB gave no indication that you were using DotNet, hence[/color]
              > the[color=green]
              > > 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,[/color]
              > clear[color=green]
              > > information to help.
              > >
              > > Bob Lehmann[/color][/color]


              Comment

              • Bob Lehmann

                #8
                Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

                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" <garret_computi ng@hotmail.com> wrote in message
                news:OMKMZ94NEH A.644@tk2msftng p13.phx.gbl...[color=blue]
                > 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[/color]
                brain[color=blue]
                > and can figure that out.
                >
                > "Bob Lehmann" <none> wrote in message
                > news:e92cOo4NEH A.664@TK2MSFTNG P09.phx.gbl...[color=green]
                > > Your question in DB gave no indication that you were using DotNet, hence[/color]
                > the[color=green]
                > > 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,[/color]
                > clear[color=green]
                > > information to help.
                > >
                > > Bob Lehmann
                > >
                > > "TWACS" <garret_computi ng@hotmail.com> wrote in message
                > > news:#mWN6W4NEH A.3052@TK2MSFTN GP12.phx.gbl...[color=darkred]
                > > > Oh give me a break. I posted in the DB and was told to come here so I[/color]
                > > did.[color=darkred]
                > > > If you can't answer the question leave the post alone
                > > >
                > > > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
                > > > news:uWWsCO3NEH A.736@TK2MSFTNG P09.phx.gbl...
                > > > > www.aspfaq.com/5002
                > > > >
                > > > > --
                > > > > Aaron Bertrand
                > > > > SQL Server MVP
                > > > > http://www.aspfaq.com/
                > > > >
                > > > >
                > > > >
                > > > >
                > > > > "TWACS" <garret_computi ng@hotmail.com> wrote in message
                > > > > news:uNMbVJ3NEH A.1420@TK2MSFTN GP09.phx.gbl...
                > > > > > How do I add and get session defined variables?
                > > > > >
                > > > > > when I do this Session("USERID ") = "NAME"; I get
                > > > > > System.Web.UI.P age.Session' denotes a 'property' where a 'method'[/color][/color]
                > was[color=green][color=darkred]
                > > > > > expected
                > > > > >
                > > > > >
                > > > > >
                > > > > > Thanks,
                > > > > >
                > > > > > Bryan
                > > > > >
                > > > > >
                > > > >
                > > > >
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Gav

                  #9
                  Re: C# Session(&quot;U SERID&quot;) = &quot;NAME&quot ;;

                  try Session["USERID"] = "NAME"l

                  Comment

                  Working...