Avatar of itsupportdmg

asked on 

show/hide controls inside a .net 4.0 repeater

Thanks in advance for any help you guys can give me.  I am working on a web application to allow some employees to put in security change requests. On one of the pages in the app I have the user select what type of security should be applied to a particular account. I use a repeater to generate a table with the name of a securable object, some radio buttons giving them options about how to secure the object, and then a final column that has controls for making the final selections.  The idea is that based on what options the user chooses on the radio buttons determines which controls they see in the final column. Like this:  Picture of what I'm trying to doMy first instinct would be to use javascript to show/hide the controls but i cannot figure out how to tell my javascript function how to show/hide the right controls.  I tried adding <%# Eval("SecObjectName") %> to the ID tag of the web controls so that I could use getElementByID, but I keep getting an error when I build the site. I'm stumped. I'm not even sure this is the best way to go about what I'm trying to do. Any help would be greatly appreciated.
ASP.NETJavaScriptVB Script

Avatar of undefined
Last Comment

8/22/2022 - Mon