Groups | Blog | Home
all groups > asp.net > june 2004 >

asp.net : Hide Table Question


Miguel Dias Moura
6/16/2004 10:17:22 PM
Hello,

i am trying to show a table if a certain dynamic text is different from
"---".
However this is not working. When i i was comparing to "" it was working.
Can you please check my code?

<table visible='<%# dataSetExplicador.FieldValue("DisciplinaComentarios",
Container) <> "---" %>' ...

Thank You,
Miguel

Miguel Dias Moura
6/17/2004 10:36:33 AM
Yes that's it. In one page i had the runat=server but in this one i was
working i forgot it and that's why everything is going bad.
I figured out that yesterday.

Thanks,
Miguel

[quoted text, click to view]

Darren Clark
6/17/2004 2:17:31 PM
you could do it the other way

<table runat=server id="myTable">

then in code simply go

this.myTable.visable = false;

or even
this.myTable.attributes.add("style","display:none;")
or something like that.


[quoted text, click to view]

AddThis Social Bookmark Button