User control referencing

  • Thread starter Thread starter James Page
  • Start date Start date
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
 
Back
Top