What this means is that you're not actually returning anything (just
Return
just leaves the function).
If you intend to return something, do so. Otherwise, change the
Function
to a
Sub
:
Sub groupTest()
If (My.User.IsInRole("RBAFCT_LIS")) Then
Server.Transfer("adminpage.aspx")
Else : Server.Transfer("userpage.aspx")
End If
Return
End Sub
If you intend to return
Nothing
, do this:
Function groupTest() As Object()
If (My.User.IsInRole("RBAFCT_LIS")) Then
Server.Transfer("adminpage.aspx")
Else : Server.Transfer("userpage.aspx")
End If
Return Nothing
End Sub