Link to home
Start Free TrialLog in
Avatar of mgmhicks
mgmhicks

asked on

how to change html control with vb code behind

I have the following line of code on a page

 <li id="OneTime" runat="server"> <a runat="server" href="../Collections/OneTimePayment">One-Time Payment</a></li>

Here is the code behind that doesn't seem to make this line be invisible.

myUL = Master.FindControl("OneTime")
myUL.Visible = False

but the the line is still there.  Any ideas.

thanks
Avatar of louisfr
louisfr

Are you sure the 'li' tag is not inside a container?
FindControl does not search in controls within controls.
Avatar of mgmhicks

ASKER

Its inside the container class not the container control.
ASKER CERTIFIED SOLUTION
Avatar of louisfr
louisfr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial