User control referencing

J

James Page

Hi all

I have a user control - mycontrol.ascx with various controls within it.
mycontrol.ascx is utilised in myPage.aspx

I have a class (class1) to carry out various functions, subs etc.
How do I go about setting the properties of the controls within
mycontrol.ascx directly from class1

Ideally what i'd like to do is various control property settings in class1
when the myPage.aspx page load event fires - but for various reasons I don't
want this done in the code behind of myPage.aspx or myControl.ascx -
(myControl.ascx will be utilised across the site and the various controls
within it will need their properties set depending on certain conditions that
may arise)

This sort of control referencing was very easy in access adp but I'm a bit
bit lost here!!

Any pointers - vb.net (if possible)

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top