Within my Website project, I have some aspx pages, javascript files, and a custom C# class I called MyCustomReport. I placed a Image box with an ID of Image1 inside SelectionReport.aspx. I need to get access to that Image1 inside MyCustomReport.cs so I can turn it on and off based on conditions. What code do I need to do this? Thanks everyone
Within my Website project, I have some aspx pages, javascript files, and a custom
Share
You’ll need to pass the instance of
Imagecontrol toMyCustomReport. From there you’ll be able to set it’sVisibleproperty totrueorfalse.Probably something like this
EDIT derek is right, you won’t need the entire page, just the image.