Hi,
i have the following code
Overrides Function GetVaryByCustomString(ByVal context As HttpContext, ByVal arg As String) As String
Dim objUtility As New OMG.Common.Utility
Try
Select Case arg.ToLower
Case "userid"
Dim iUserID As Nullable(Of Integer) = objUtility.GetUserIDFromPageContext
If iUserID.HasValue = True Then
Return iUserID.Value
End If
Case "test"
Return "jj"
End Select
Return MyBase.GetVaryByCustomString(context, arg)
Finally
objUtility = Nothing
End Try
The problem is my args are userid;test, so how do you set mutiple custom settings within this function?
i have the following code
Overrides Function GetVaryByCustomString(ByVal context As HttpContext, ByVal arg As String) As String
Dim objUtility As New OMG.Common.Utility
Try
Select Case arg.ToLower
Case "userid"
Dim iUserID As Nullable(Of Integer) = objUtility.GetUserIDFromPageContext
If iUserID.HasValue = True Then
Return iUserID.Value
End If
Case "test"
Return "jj"
End Select
Return MyBase.GetVaryByCustomString(context, arg)
Finally
objUtility = Nothing
End Try
The problem is my args are userid;test, so how do you set mutiple custom settings within this function?