By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,667 Members | 1,321 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,667 IT Pros & Developers. It's quick & easy.

User Controls functions

P: n/a
You could do somthing like this in your page
Control c = CreateChildControls();
c.FindControl();
-----Original Message-----
Hi All,

Is it not possible to call a function defined in a user control from the webapplication containing the control?

ie lets say I have a linkbutton in a user control and I have a function forthis user control that takes a colour so that in the page load of the webapplication I could set which colour I want it to be.

Only in the code behind there is no reference to my user control?!?
Is there a way to do what I'm looking for?

Thanks All
Gav
.

Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.