N
Nick Large
Hello.
I have a class library with a class for authentication that uses forms
authentication.
The RedirectFromLoginPage class is called through my application using:
ClassLibrary.Authentication.FormsAuthentication.RedirectFromLoginPage(UserID,
False)
and, although this method works as intended, it leaves a warning (green
squiggly) which looks like I don't know what I'm talking about
(unprofessional). Here is the declaration:
Public Shared mFormsAuthentication As New
System.Web.Security.FormsAuthentication
Public Shared Property FormsAuthentication() As
System.Web.Security.FormsAuthentication
Get
Return mFormsAuthentication
End Get
Set(ByVal value As FormsAuthentication)
mFormsAuthentication = value
End Set
End Property
Can I resolve this? I tried using an assigned instance (objClassLibrary as
ClassLibrary), but reached a lot of errors all over the application when I
do that so I stick with this method instead.
Thanks in advance.
I have a class library with a class for authentication that uses forms
authentication.
The RedirectFromLoginPage class is called through my application using:
ClassLibrary.Authentication.FormsAuthentication.RedirectFromLoginPage(UserID,
False)
and, although this method works as intended, it leaves a warning (green
squiggly) which looks like I don't know what I'm talking about
(unprofessional). Here is the declaration:
Public Shared mFormsAuthentication As New
System.Web.Security.FormsAuthentication
Public Shared Property FormsAuthentication() As
System.Web.Security.FormsAuthentication
Get
Return mFormsAuthentication
End Get
Set(ByVal value As FormsAuthentication)
mFormsAuthentication = value
End Set
End Property
Can I resolve this? I tried using an assigned instance (objClassLibrary as
ClassLibrary), but reached a lot of errors all over the application when I
do that so I stick with this method instead.
Thanks in advance.