Last post Jun 27, 2016 02:39 PM by PatriceSc
Jun 27, 2016 02:04 PM|sanjshah|LINK
I have a class where I am setting values fro inclusion on other pages,
Private Shared m_ucToDisplayForApplicant As String
Public Shared Property ucToDisplayForApplicant() As String
Set(value As String)
Dim s As String = value
m_ucToDisplayForApplicant = value
Public Shared Function ucType()
Dim ucTypeToShow As String = HttpContext.Current.Session.Item("SelectedVar")
Select Case ucTypeToShow
ucTypeToShow = "ucType1"
ucTypeToShow = "ucType2"
ucTypeToShow = "ucType3"
I am trying to use this function to set the value on my pages but the value is always returned null
ucToDisplayForApplicant = ucType()
Any help is appreciated.
Jun 27, 2016 02:39 PM|PatriceSc|LINK
Have you tried the VS debugger to see if the else clause is called? If it not expected to be called you could also thrown an exception to show you run into an unexpected case.
If not familiar with the debugger see https://msdn.microsoft.com/en-us/library/mt243867.aspx