Hi all,
I have this TR defined in my HTML
[CODE]<tr id=”trSupervisorHeading” runat=”server” >
So what I want to do, in the code behind page (vb.net) I have the page_load event filling several data grids. I have a if statement that tests if there are any items in a specific datagrid, if not I want it to hide the TR mentioned above.
What I have at the moment is:
[CODE]Response.Write(“<script language = ‘Javascript’>document.getElementById(‘trSupervisorHeading’).style.visibility =’hidden’;</script>”)
but I get an error “Object required.”, when I open the page, I have also added:
[CODE]Response.Write(“<script language = ‘Javascript’>alert(‘dgapprove.items.count =0!’);</script>”)
and this works fine.
I was hoping someone would be able to help me, or point me in the right direction.
Thanks.