Hide Table Question

Discussion in 'ASP .Net' started by Miguel Dias Moura, Jun 16, 2004.

  1. 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, Jun 16, 2004
    #1
    1. Advertising

  2. Miguel Dias Moura

    Darren Clark Guest

    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.


    "Miguel Dias Moura" <> wrote in message
    news:#58Bed#...
    > 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
    >
    >
    Darren Clark, Jun 17, 2004
    #2
    1. Advertising

  3. 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

    "Darren Clark" <> wrote in message
    news:...
    > 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.
    >
    >
    > "Miguel Dias Moura" <> wrote in message
    > news:#58Bed#...
    > > 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, Jun 17, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Williams
    Replies:
    2
    Views:
    1,107
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. RA
    Replies:
    1
    Views:
    3,959
  3. David
    Replies:
    4
    Views:
    5,954
    Vidar Petursson
    May 21, 2004
  4. Rio
    Replies:
    4
    Views:
    1,174
  5. Replies:
    6
    Views:
    211
Loading...

Share This Page