Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Finding a Control within an <asp:table..> Control

Thread Tools

Finding a Control within an <asp:table..> Control

solveig Osk
Posts: n/a
Ok it works now. I was using a web user control so I had
to do it like this:

RadioButton radioTest = (RadioButton)this.FindControl

( >> "this" instead of "Page" )

And now everything is alive and kicking )

>-----Original Message-----
>I am using an <asp:table..> for a part of the content on
>my page. I am using this because I want to be able to
>control when it is visible (so sometimes I set the
>table.Visible = false when I want it to be hidden). And I
>don't want to use a normal <table>
>My problem is that I have an <asp:RadioButton...> inside
>my <asp:Table...> and I don't know how to "talk to" that
>RadioButton... it doesn't become a member in the .cs file
>because it is inside another control.
>I tried to use the table.Controls property (that is
>supposed to return a Collection of Controls) but it
>doesn't seem to give me any way of "talking to" a

>control in the ControlCollection. What am I doint wrong ?

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding a SubString within a String Badass Scotsman ASP .Net 2 03-31-2006 04:00 PM
Finding Server... Finding Host.... enough already!!! Computer Support 2 01-20-2006 10:23 AM
Referring to a textbox within a web control within an aspx KatB ASP .Net 0 04-22-2005 07:14 PM
finding Button control within Formview Daves ASP .Net 0 04-11-2005 11:50 PM
Problem finding child control within nested DataList! Doug ASP .Net 1 04-22-2004 05:16 AM