M
Matt
All -
Is there a preferred method to assign session variables in ASP.NET /
VB.NET?
It looks like you can do any of the following to assign values:
Session.Item("Foo") = "Bar"
Session("Foo") = "Bar"
Sesssion.Add("Foo", "Bar")
It looks like you can do either of the following to get values:
strBar = Session.Item("Foo")
strBar = Session("Foo")
Are there advantages/disadvantages to any of these approaches or do
they all get you the same thing?
Thanks,
- Matt
Is there a preferred method to assign session variables in ASP.NET /
VB.NET?
It looks like you can do any of the following to assign values:
Session.Item("Foo") = "Bar"
Session("Foo") = "Bar"
Sesssion.Add("Foo", "Bar")
It looks like you can do either of the following to get values:
strBar = Session.Item("Foo")
strBar = Session("Foo")
Are there advantages/disadvantages to any of these approaches or do
they all get you the same thing?
Thanks,
- Matt