M
Mick Walker
Hi everyone,
My client is requiring me to convert an existing web app from VB.Net to
C# to become more inline with their existing codebase.
I am running into a problem when converting a usercontrol, basically the
usercontrol has a property which is set by the hosting page, to indicate
if a user is logged in or not. This controls the navigation menu which
the user see's.
In the VB version its just a matter of:
Private _UserIsLoggedIn As Boolean
Public Property UserIsLoggedIn() As Boolean
Get
Return _UserIsLoggedIn
End Get
Set(ByVal value As Boolean)
_UserIsLoggedIn = value
End Set
End Property
So I convert it to C# and this gives me:
private bool _UserIsLoggedIn;
public bool UserIsLoggedIn
{
get { return _UserIsLoggedIn; }
set { _UserIsLoggedIn = value; }
}
However, I cannot access this property from the calling page.
Can anyone tell me where I am going wrong.
Regards
My client is requiring me to convert an existing web app from VB.Net to
C# to become more inline with their existing codebase.
I am running into a problem when converting a usercontrol, basically the
usercontrol has a property which is set by the hosting page, to indicate
if a user is logged in or not. This controls the navigation menu which
the user see's.
In the VB version its just a matter of:
Private _UserIsLoggedIn As Boolean
Public Property UserIsLoggedIn() As Boolean
Get
Return _UserIsLoggedIn
End Get
Set(ByVal value As Boolean)
_UserIsLoggedIn = value
End Set
End Property
So I convert it to C# and this gives me:
private bool _UserIsLoggedIn;
public bool UserIsLoggedIn
{
get { return _UserIsLoggedIn; }
set { _UserIsLoggedIn = value; }
}
However, I cannot access this property from the calling page.
Can anyone tell me where I am going wrong.
Regards