Hi,
Thanks for the quick response - the problem isn't accessing the properties
of the usercontrol - I have figured out how to do that.
What I want to do is call a method of the user control (which I've figured
out how to do) and execute some code in this method that will allow me to
access the checked value of a radiobutton in the user control.and set a
usercontrol property based on the returned value of the radiobutton. I am
having problems referencing the radiobutton to check it's checked value.
Joe
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
A few days back i needed to pass some value to a user control at run time
and i had asked a similar question
This link was what i got and it does the job
http://www.dotnetjunkies.com/Article...F720AB013.dcik
in short you either declare the user control in code behind or you can
user Page.FindControl to get its reference
and then do whatever you please
HTH
HD
"Joe Molloy" <mo********@hotmail.com> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl... Hi,
I have a usercontrol containing mutually exclusive radiobuttons and I am
trying to use a public function to set a property of the usercontrol
based on which one is checked. However when I refer to the radiobuttons in my
public function (method) the runtime tells me that no object reference
has been set for the radiobutton. How do I grab a reference to my
radiobutton inside my method?
Joe