D
Doogie
I'm having a problem setting visibility of an asp:RadioButtonList
within javascript.
I want it to be visible when the form is first loaded, so within the
C# code I have the following in the page load function:
gridType.Visible = false;
Simple enough. The problem is that I want the list to show up when a
certain thing is done on the page. Unfortunately, the bulk of that
code exists already and is in javascript. I tried to do the
following, mimicking some of what the other code on the page is doing.
document.all.<%=gridType.ClientID%>.style.visibility = "visible";
But when I do, I get this error:
'document.all.ctl00_MasterContenetPlaceHolder_gridType.style' is null
or not an object.
If I pull the code out of C# and set the grids visibility to false
within the HTML, the javascript code works fine. Setting the
visibility within C# seems to mess up the ability to set it within
Javascript. How do I get around this?
within javascript.
I want it to be visible when the form is first loaded, so within the
C# code I have the following in the page load function:
gridType.Visible = false;
Simple enough. The problem is that I want the list to show up when a
certain thing is done on the page. Unfortunately, the bulk of that
code exists already and is in javascript. I tried to do the
following, mimicking some of what the other code on the page is doing.
document.all.<%=gridType.ClientID%>.style.visibility = "visible";
But when I do, I get this error:
'document.all.ctl00_MasterContenetPlaceHolder_gridType.style' is null
or not an object.
If I pull the code out of C# and set the grids visibility to false
within the HTML, the javascript code works fine. Setting the
visibility within C# seems to mess up the ability to set it within
Javascript. How do I get around this?