S
Scott
I have an application in which I toggle the visibility of DIV elements via
client-side Javascript. Based on server-side data values at the time the page
is rendered, I am setting the initial visibility of the DIV in the PreRender
event handler by registering a startup script that does stuff like:
document.getElementById('divName').style.visibility = 'hidden';
When the DIV in question contains a datagrid, a set of 1-pixel white lines
are still displayed that apparently equate with the inner borders of the
TABLE element that the datagrid is rendered as. Everything else within the
DIV, including the rest of the datagrid, is hidden correctly.
Does anyone know of a better technique or a work-around for this behavior?
client-side Javascript. Based on server-side data values at the time the page
is rendered, I am setting the initial visibility of the DIV in the PreRender
event handler by registering a startup script that does stuff like:
document.getElementById('divName').style.visibility = 'hidden';
When the DIV in question contains a datagrid, a set of 1-pixel white lines
are still displayed that apparently equate with the inner borders of the
TABLE element that the datagrid is rendered as. Everything else within the
DIV, including the rest of the datagrid, is hidden correctly.
Does anyone know of a better technique or a work-around for this behavior?