Hi all, I have a menu in my home page with two items with the same NavigateUrl that is actually a login page. In the login page, when the login is succesfully done, I would like to go to different pages, following the menu item selected in the home page. For
this, what I do is to use a global variable that is set to TRUE or FALSE following the selected menu item (in the "Menu1_MenuItemClick" event). Then, in the "Login1_LoggedIn" event I test the value of the global variable in order to redirect to the appropriate
page. I define the global variable in a class as follows: Imports Microsoft.VisualBasic Imports System Public Class GlobVar Private Shared Where As Boolean Public Shared Property WhereToGo() As Boolean Get Return Where End Get Set(ByVal Value As Boolean) Where
= Value End Set End Property End Class and I set the variable as: GlobVar.WhereToGo = False, for example. However, when I test the value of "GlobVar.WhereToGo", it is always TRUE. Can somebody tell me where is the problem with that, please? Thanks in advance,
Daniel
char22
Member
355 Points
71 Posts
Global variables?
Feb 18, 2005 10:17 AM|LINK