Public Function AddMessage(ByVal toPage As Object) As Boolean toPage.ClaimInfo = "Something" Return True End FunctionIn the page, I have a label ID ClaimInfo. However, when I type toPage, it is not strong type.
Public Function AddMessage(ByVal toPage As System.Web.UI.Page) As Boolean toPage.ClaimInfo = "Something" Return True End FunctionBut, doing this makes toPage to generate a design time error.