setting an html control to visable="true/false"

  • Thread starter Yankee Imperialist Dog
  • Start date
Y

Yankee Imperialist Dog

there are times i want to turn a specific row in an html table off or hide it.
I can set a <tr> control with an id and a runat="server", but how do i find
it, then set it to Visable="False"?

A panel will cause problems for the designer.

is there another way?
 
C

clintonG

trace="true"
Then look through the control tree and use the FindControl method
concatenated into a series in a single statement which will find the object
in the control tree.

// example
Panel captchaPanel =
Master.FindControl("MembershipControlPanel").FindControl("InnerPanelContent").FindControl("CaptchaPanel")
as Panel;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top