HighTechTalks DotNet Forums  

Usercontrol Method

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Usercontrol Method in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Joe Molloy
 
Posts: n/a

Default Usercontrol Method - 12-16-2003 , 02:10 PM






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



Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Usercontrol Method - 12-16-2003 , 10:27 PM






Joe, can you post a code sample for us to take a look at.

Thanks,
Frank

"Joe Molloy" <molloy_joe (AT) hotmail (DOT) com> wrote

Quote:
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

Reply With Quote
  #3  
Old   
Joe Molloy
 
Posts: n/a

Default Re: Usercontrol Method - 12-17-2003 , 01:32 AM



It's ok - figured out it was the way I was declaring my properties - Thanks
Frank

Joe

"Frank Seibel" <groups (AT) popularspace (DOT) com> wrote

Quote:
Joe, can you post a code sample for us to take a look at.

Thanks,
Frank

"Joe Molloy" <molloy_joe (AT) hotmail (DOT) com> wrote

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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.