|
-
Aug 15th, 2005, 04:58 AM
#1
Thread Starter
Fanatic Member
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
-
Aug 16th, 2005, 06:15 AM
#2
Frenzied Member
Re: Access to shared sub
What are the errors? - making the Methods public should allow them to be accessed externally.
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Aug 18th, 2005, 01:25 AM
#3
Hyperactive Member
Re: Access to shared sub
Create a public class, and place the file in the App_Code folder.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|