G
G Dean Blake
I have this code snippet in C# that I have to convert to VB
object o = null;
if (mode == PageTrackingMode.ByApplication) {
o = Page.Application[HitsKey];
}
else if (mode == PageTrackingMode.BySession) {
o = Page.Session[HitsKey];
}
In most of the C# code I see that is referring to Session and Application
variables I see that quotes are used i.e. Page.Session["HitsKey"] which
would translate to Page.Session("HitsKey") in VB. But the code above is
using the brackets without the quotes. What does that mean and how would
that translate to VB?
Thanks,
G
object o = null;
if (mode == PageTrackingMode.ByApplication) {
o = Page.Application[HitsKey];
}
else if (mode == PageTrackingMode.BySession) {
o = Page.Session[HitsKey];
}
In most of the C# code I see that is referring to Session and Application
variables I see that quotes are used i.e. Page.Session["HitsKey"] which
would translate to Page.Session("HitsKey") in VB. But the code above is
using the brackets without the quotes. What does that mean and how would
that translate to VB?
Thanks,
G