I would like to build some SSRS custom code that when called, accesses the textbox (the control) containing the expression and modifying it.
Is this possible? If so, how? I would like to use FindControl, but it requires access to the page object, which I am not sure how to achieve.
Most examples I can find use the 'this' object, but I do not have access to the 'this' object inside custom code.
My code:
Public Function Helloworld AS String
System.Web.UI.Page.FindControl("TextBox1")
End Function
Produces the error:
There is an error on line 1 of custom code:
[BC30469] Reference to a non-shared member requires an object reference.