WebUserControl reference

G

Guest

I have created a base page (inherits from System.Web.UI.Page) from which all
my .aspx pages inherit. How can I reference a web-user-control from that
basepage? (e.g. the .aspx page calls a function on the base page
(this.SetSomeText('Hello')), which in turn will call a function in a
web-user-control (wuc.SetText()) if it exists on the page.

Thanks,
C.
 
G

Guest

Yes, I've tried that. If I cast to a Control, I can find the object, but
cannot cast it to the appropriate Web User Control, since I cannot seem to
reference the Web User Control.
 

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

Top