Can you tell me how to use "AND" here. It's really urgent. Thank You.

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

  1. Hi,

    i have this line code to hide a table if a database field value is empty:

    <table runat="server" visible='<%# dataSetPerson.FieldValue("Book",
    Container) <> "" %>' ...

    What i want is to HIDE the table if any of these 3 conditions are true:

    dataSetPerson.FieldValue("Book", Container) <> ""
    OR
    dataSetPerson.FieldValue("Author", Container) <> ""
    OR
    dataSetPerson.FieldValue("Year", Container) <> ""

    Basicly i want to know how to use the OR command in it. I am working in
    ASP.NET / VB.

    Thanks,
    Miguel
    Miguel Dias Moura, Jun 21, 2004
    #1
    1. Advertising

  2. Miguel Dias Moura

    Greg Young Guest

    somecondition orelse someothercondition orselse someothercondition


    "Miguel Dias Moura" <> wrote in message
    news:...
    > Hi,
    >
    > i have this line code to hide a table if a database field value is empty:
    >
    > <table runat="server" visible='<%# dataSetPerson.FieldValue("Book",
    > Container) <> "" %>' ...
    >
    > What i want is to HIDE the table if any of these 3 conditions are true:
    >
    > dataSetPerson.FieldValue("Book", Container) <> ""
    > OR
    > dataSetPerson.FieldValue("Author", Container) <> ""
    > OR
    > dataSetPerson.FieldValue("Year", Container) <> ""
    >
    > Basicly i want to know how to use the OR command in it. I am working in
    > ASP.NET / VB.
    >
    > Thanks,
    > Miguel
    >
    >
    >
    Greg Young, Jun 21, 2004
    #2
    1. Advertising

  3. Miguel Dias Moura

    Martin Guest

    See
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vaidxlogical.asp

    "Miguel Dias Moura" <> wrote in message
    news:...
    > Hi,
    >
    > i have this line code to hide a table if a database field value is empty:
    >
    > <table runat="server" visible='<%# dataSetPerson.FieldValue("Book",
    > Container) <> "" %>' ...
    >
    > What i want is to HIDE the table if any of these 3 conditions are true:
    >
    > dataSetPerson.FieldValue("Book", Container) <> ""
    > OR
    > dataSetPerson.FieldValue("Author", Container) <> ""
    > OR
    > dataSetPerson.FieldValue("Year", Container) <> ""
    >
    > Basicly i want to know how to use the OR command in it. I am working in
    > ASP.NET / VB.
    >
    > Thanks,
    > Miguel
    >
    >
    >
    Martin, Jun 22, 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. jm
    Replies:
    4
    Views:
    426
  2. Miguel Dias Moura
    Replies:
    2
    Views:
    10,478
    Bruno Sirianni
    Apr 5, 2004
  3. Miguel Dias Moura
    Replies:
    1
    Views:
    411
  4. shapper
    Replies:
    0
    Views:
    327
    shapper
    Jan 17, 2007
  5. shapper
    Replies:
    0
    Views:
    305
    shapper
    Jan 31, 2008
Loading...

Share This Page