-
Access to shared sub
Guys,
I have created a user control that I have added to my homepage. The user control (uc_section) contains most of the functionality I need.
When the user hits a button on the homepage, I am setting the visible property of uc_section to true. However, at this point I would also like to run some code that sits on the user control.
How can I access these subs from my homepage ? If I set them to Public Shared subs I get lots of errors.
Cheers
Bob
-
Re: Access to shared sub
What are the errors? - making the Methods public should allow them to be accessed externally.
DJ
-
Re: Access to shared sub
Create a public class, and place the file in the App_Code folder.