Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / July 2006

Tip: Looking for answers? Try searching our database.

Using a RadioButtonList Server Control in a Composite Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg Larden - 25 Jul 2006 18:29 GMT
Hi There,

I have a composite server control that wrapps a RadiobuttonList. Which
is populate from a Collection of Objects.

The control is rendered and populated with data properly. On post back
it redraws itself with preserving the selection from the user. But I
can not figure out how to retrieve which radiobutton was selected.

I've created a public property in my Composite Control to expose the
private member "_radiobuttonlist" but the selected value is null on
postback.

I'm totally stumped :|
sam - 01 Aug 2006 00:04 GMT
Make sure that you are building your control tree *completely* - from
your radio button list all the way to the main Page object - by the
time Page_Init or Page_Load executes.

This will cause your problem if you don't do this.  Usually
EnsureChildControls() is called from Page_Init() - or OnInit()
whichever you use.

> Hi There,
>
[quoted text clipped - 10 lines]
>
> I'm totally stumped :|

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.