Protected Function GenerateBrochureLink(BrochurePath As Object) As String If Convert.IsDBNull(BrochurePath) Then Return "No Brochure Available" Else Return String.Format("View Brochure", _ ResolveUrl(BrochurePath.ToString())) End If End Function