Variable In Vb.Net

vb.net , asp , variable Indonesia
  • 11 years ago

    Hi All, How to declare a variable that never change from pageload until i close the page. Simple Case : * ShowInfo.PageLoad() begins to execute for UserA. * ShowInfo.Page_Load() begins to execute for UserB * UserA has variable Dummy = 100. * UserB has variable Dummy = 20. * UserA starts to do something in the page but there is no code that will reset the Dummy Variable. * UserB starts to do something in the page but there is no code that will reset the Dummy Variable. But the Result: Since UserB's was the last one assigned to (which remember... there is only one version of this in all of memory), the Dummy Variable is assigned for both users but different session. UserB sees Dummy = 20 but UserA sees Dummy = 20 too. I Want that the result is UserA Dummy = 100 & UserB Dummy = 20

    anyone can help me, (in vb.net please) Thanks In Advance -chia-

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Engineers are all basically high-functioning autistics who have no idea how normal people do stuff.” - Cory Doctorow