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
Re: ASP.NET Session Variable...
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)
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.