Results 1 to 4 of 4

Thread: ASP.NET Session Variable...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Posts
    185

    Unhappy ASP.NET Session Variable...

    Okay, as with most of the folks posting here, I'm new to ASP.NET and am having a little trouble assigning a database value to a session variable. I have a simple login page setup, but I cannot assign values from the fields in the table to Session variables...have tried googling and searching here, but have had no luck. I guess this question is too simple!!!

    Thanks in advance,

    Jim Piller
    "The Force will be with you, always."

    --Ben Kenobi--

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: ASP.NET Session Variable...

    Post your code.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Posts
    185

    Re: ASP.NET Session Variable...

    This is how I'm assigning the value to the session variable, but clearly it's not correct...how do I correct this?

    Session("FirstName") = DS.Tables(0).Rows(0).Item(0)
    "The Force will be with you, always."

    --Ben Kenobi--

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ASP.NET Session Variable...

    Set a breakpoin on that line. When the debugger stops there, do a quick watch on the ds.tables... part and see if it holds a value. After the line executes, check what session("Firstname") holds.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width